/* ---------------------------------------------------------------
   Solvaya PMS — basisstijlen
   Geen dependencies. Design-tokens in :root, daarna componenten.
   --------------------------------------------------------------- */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --booked-soft: #f2f4f5;

  --text: #1d2430;
  --text-muted: #667085;

  --primary: #2f6bff;
  --primary-hover: #2158e0;
  --primary-soft: #eaf0ff;

  --success: #067647;
  --success-soft: #e7f6ee;
  --warning: #b54708;
  --warning-soft: #fdf1e6;
  --danger: #b42318;
  --danger-soft: #fdeceb;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --sidebar-w: 240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; }
p { margin: 0; }

.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* ---------- Layout ---------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar__title { font-size: 19px; }
.topbar__actions { display: flex; gap: 8px; }

.view {
  padding: 28px;
  outline: none;
  width: 100%;
}

/* ---------- Brand ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 16px;
}

.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #7aa2ff);
}

.brand__name { font-weight: 700; letter-spacing: -.01em; }

/* ---------- Navigatie ---------- */

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover { background: var(--bg); }

.nav a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.sidebar__footer {
  margin-top: auto;
  padding: 12px;
  font-size: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- Componenten ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover { background: var(--bg); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn--primary:hover:not(:disabled) { background: var(--primary-hover); }

.btn--danger {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--danger);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
}
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger  { background: var(--danger-soft);  color: var(--danger); }
.badge--primary { background: var(--primary-soft); color: var(--primary-hover); }

.stat__value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat__label { font-size: 13px; color: var(--text-muted); }

table.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
.table th, .table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.table th { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }

.empty-state {
  text-align: center;
  padding: 44px 24px;
  color: var(--text-muted);
}
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- Accommodatiecards ---------- */

.property-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.property-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.property-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(16, 24, 40, .10);
  transform: translateY(-1px);
}

/* Open menu moet boven de andere cards uitkomen. */
.is-menu-open { z-index: 10; }

/* Overlay-link: maakt de hele card klikbaar zonder geneste links. */
.property-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.property-card__overlay:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.menu-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.property-card__media {
  aspect-ratio: 16 / 10;
  background: var(--border);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden;
}

.media__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.media__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg,
    hsl(var(--hue) 55% 62%),
    hsl(calc(var(--hue) + 40) 50% 45%));
}

.media__placeholder svg { width: 34px; height: 34px; opacity: .85; }

.property-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px 16px;
}

.property-card__title { font-weight: 600; }
.property-card__place { color: var(--text-muted); font-size: 13px; }

/* ---------- Actiemenu ---------- */

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover { background: #fff; border-color: var(--border-strong); }
.icon-btn[aria-expanded="true"] { background: #fff; border-color: var(--border-strong); }

.menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 3;
  min-width: 200px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
}

.menu[hidden] { display: none; }

.menu__item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.menu__item:hover { background: var(--bg); }

/* ---------- Segmented filter ---------- */

.segmented {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.segmented a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.segmented a:hover { background: var(--bg); color: var(--text); }

.segmented a[aria-selected="true"] {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

/* ---------- Tabs / panelen ---------- */

.view__heading { margin-bottom: 14px; font-size: 18px; }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tabs__item {
  flex: none;
  padding: 9px 12px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.tabs__item:hover { color: var(--text); }

.tabs__item[aria-current="page"] {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
}

.panel { display: grid; gap: 18px; }
.panel[hidden] { display: none; }

/* ---------- Indeling en capaciteit ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.detail__main { display: grid; gap: 20px; }

/* Het paneel rechts blijft in beeld terwijl je door de hoofdkolom scrolt.
   De afstand is de hoogte van de topbar plus wat lucht. */
.detail__aside--sticky {
  position: sticky;
  top: 92px;
}

.detail__box {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.detail__title { font-size: 15px; }

.detail__subtitle { margin-top: 4px; font-size: 13px; color: var(--text-muted); }

.detail__list { display: grid; gap: 0; margin: 0; }

.detail__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.detail__row:last-child { border-bottom: 0; }
.detail__row dt { color: var(--text-muted); }
.detail__row dd { margin: 0; text-align: right; }

.detail__rooms { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.detail__rooms li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

/* ---------- Overzichtscomponent (Algemene informatie) ---------- */

.overview-card { display: grid; gap: 12px; margin-top: 12px; }

.overview-card__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.overview-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* De hoofdfoto in het voorbeeld is meteen het uploadpunt. */
.overview-card__media--editable {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.overview-card__hint {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: rgba(16, 24, 40, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity .15s;
}

.overview-card__media--editable:hover .overview-card__hint,
.overview-card__media--editable:focus-visible .overview-card__hint { opacity: 1; }

.overview-card__media--editable:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.overview-card__empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-muted);
}

.overview-card__empty svg { width: 26px; height: 26px; opacity: .55; }

.overview-card__body { display: grid; gap: 4px; }
.overview-card__title { font-weight: 600; }
.overview-card__place { color: var(--text-muted); font-size: 13px; line-height: 1.45; }

/* ---------- Ruimtes ---------- */

.rooms { display: grid; gap: 12px; }
.accommodation-facilities { display: grid; gap: 12px; }

.rooms__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rooms__title { font-size: 15px; }
.rooms__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rooms__list { display: grid; gap: 10px; }

.room-card {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.room-card.is-menu-open { border-color: var(--border-strong); }

.room-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.room-card__head:hover { background: var(--bg); }
.room-card__head:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.room-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.room-card__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.room-card__name { font-weight: 600; }
.room-card__meta { color: var(--text-muted); font-size: 13px; }

.room-card__chevron {
  flex: none;
  margin-right: 40px;
  color: var(--text-muted);
  font-size: 11px;
  transition: transform .15s;
}

.room-card__head[aria-expanded="true"] .room-card__chevron { transform: rotate(90deg); }

.room-card__body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.room-card__body[hidden] { display: none; }

.room-card__body-title {
  margin: 12px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.facility-overview { display: grid; gap: 10px; }

.facility-overview__group {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: baseline;
}

.facility-overview__label { color: var(--text-muted); font-size: 13px; }
.facility-overview__items { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
}

.multiselect__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 14px;
}

.facility { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.facility input { flex: none; }

/* ---------- Multi-select (voorzieningen) ---------- */

.multiselect { position: relative; }

.multiselect__control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.multiselect__control:hover { border-color: var(--primary); }

.multiselect__control[aria-expanded="true"] {
  border-color: var(--primary);
  outline: 2px solid var(--primary-soft);
}

.multiselect__control:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

.multiselect__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.multiselect__placeholder { color: var(--text-muted); font-size: 14px; }

.multiselect__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 500;
}

.multiselect__chip-x {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 107, 255, .16);
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.multiselect__chip-x:hover { background: rgba(47, 107, 255, .32); }

.multiselect__chevron { flex: none; color: var(--text-muted); font-size: 11px; }

.multiselect__panel {
  position: absolute;
  z-index: 6;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
}

.multiselect__panel[hidden] { display: none; }
.multiselect__group + .multiselect__group { margin-top: 16px; }

.multiselect__group-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ---------- Foto's ---------- */

.photo-library { display: grid; gap: 16px; }

.photo-library__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.photo-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.photo-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg); }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card__main { position: absolute; top: 8px; left: 8px; }

.photo-card__body { display: grid; gap: 10px; padding: 10px; }

.photo-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }

.photo-card__rooms { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.chip:hover { border-color: var(--primary); color: var(--text); }

.chip.is-linked {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-hover);
  font-weight: 600;
}

.photo-grid--select { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.photo-pick {
  position: relative;
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.photo-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-pick input { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; }
.photo-pick.is-selected { border-color: var(--primary); }
.photo-pick__badge { position: absolute; right: 6px; bottom: 6px; }

.btn--sm { padding: 4px 9px; font-size: 12px; }

/* ---------- Modaal-onderdelen ---------- */

.modal__section {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.input-with-icon { position: relative; }

.input-with-icon__icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.field .input-with-icon select { padding-left: 38px; }

.panel-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 32px 24px;
  text-align: center;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}

/* ---------- Formulier ---------- */

.breadcrumb { margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); font-size: 13px; text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

.form { display: grid; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label { font-size: 14px; font-weight: 500; }

/* Kopregel met links een titel of label en rechts een actie. */
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.field input:disabled, .field select:disabled {
  background: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
}

.field input, .field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.field input:focus, .field select:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }

.form__footer { display: flex; align-items: center; gap: 12px; }
.save-note { color: var(--success); font-size: 13px; font-weight: 600; }

/* ---------- Instellingenblokken (Verhuur en huisregels) ---------- */

.settings-block {
  display: grid;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.settings-block:last-child { padding-bottom: 0; border-bottom: 0; }
.settings-block__title { display: block; font-size: 15px; font-weight: 600; }

/* ---------- Inschuifbare sidebar ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}

.drawer.is-open { pointer-events: auto; }

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .45);
  opacity: 0;
  transition: opacity .25s ease;
}

.drawer.is-open .drawer__backdrop { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(16, 24, 40, .18);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.3, .8, .3, 1);
}

.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer__title { margin-bottom: 4px; font-size: 17px; }

.drawer__body {
  display: grid;
  gap: 18px;
  padding: 20px;
  overflow: auto;
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.switch input { flex: none; width: 16px; height: 16px; }

.switch-list { display: grid; gap: 10px; }

.yesno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.yesno__options { display: flex; gap: 18px; }

.yesno__options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.yesno__options input { flex: none; width: 16px; height: 16px; }

/* ---------- Prijzen en aanpassingen ---------- */

.component-box {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.input-affix { position: relative; }

.input-affix__label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.field .input-affix input { padding-left: 34px; }
.field .input-affix input[type="number"] { -moz-appearance: textfield; }

/* ---------- Prijsperiodes en afwijkingen ---------- */

.component-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.suggestion-list { display: grid; gap: 8px; }

.suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.suggestion__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.suggestion__name { font-size: 14px; font-weight: 500; }
.suggestion__dates { color: var(--text-muted); font-size: 13px; }

.period-list { display: grid; gap: 10px; }

.period-group { display: grid; gap: 10px; }

.period-group__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.period-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 48px 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.period-card__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.period-card__name { font-weight: 600; }
.period-card__dates { color: var(--text-muted); font-size: 13px; }

.move-buttons { display: flex; flex-direction: column; gap: 2px; flex: none; }

.move-btn {
  display: grid;
  place-items: center;
  width: 22px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.move-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--text); }
.move-btn:disabled { opacity: .4; cursor: not-allowed; }

.suggestion__actions { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }

/* ---------- Prijsberekening ---------- */

/* Het rekenblok staat in een smalle kolom: laat alles binnen het paneel
   passen in plaats van eruit lopen. */
.detail__box .field-row { grid-template-columns: 1fr; }

.calc { display: grid; gap: 0; }

.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.calc__row > span:first-child { min-width: 0; overflow-wrap: break-word; }
.calc__row:last-child { border-bottom: 0; }

.calc__value {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.calc__row--total {
  border-top: 2px solid var(--border-strong);
  border-bottom: 0;
  font-weight: 600;
}

.calc__nights { display: grid; gap: 0; max-height: 240px; overflow: auto; }

.calc__night { border-bottom: 1px solid var(--border); }
.calc__night:last-child { border-bottom: 0; }
.calc__night .calc__row { border-bottom: 0; padding-bottom: 2px; }

.calc__rules {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: break-word;
}

.req { color: var(--danger); }
.hint { font-size: 12px; color: var(--text-muted); }
.field-error { font-size: 12px; color: var(--danger); }
.field-error[hidden] { display: none; }

/* ---------- Adres ---------- */

.address { display: grid; gap: 14px; }

.disclosure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-hover);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.disclosure:hover { text-decoration: underline; }

.disclosure__chevron {
  display: inline-block;
  font-size: 11px;
  transition: transform .15s;
}

.disclosure[aria-expanded="true"] .disclosure__chevron { transform: rotate(90deg); }

.address__manual { display: grid; gap: 14px; }
.address__manual[hidden] { display: none; }

.address__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.icon { display: block; }

.combo { position: relative; }

.combo__list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
}

.combo__list[hidden] { display: none; }

.combo__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.combo__item:hover, .combo__item.is-active { background: var(--bg); }
.combo__meta { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.combo__empty { padding: 10px; color: var(--text-muted); font-size: 13px; }

.field input.is-invalid, .field select.is-invalid { border-color: var(--danger); }

/* ---------- Adresbevestiging ---------- */

.address__confirm { display: grid; }
.address__confirm[hidden] { display: none; }

.address-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--success-soft);
  border-radius: var(--radius-sm);
}

.address-card__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.address-card__line { margin: 0; font-size: 14px; }

/* ---------- Overlay / modal ---------- */

body.no-scroll { overflow: hidden; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.overlay[hidden] { display: none; }

.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .5);
}

.modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(16, 24, 40, .25);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.modal__head h2 { font-size: 17px; }

.modal__body {
  display: grid;
  gap: 18px;
  padding: 20px;
  overflow: auto;
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.modal__foot:empty { display: none; }

.alert { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.alert--danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Wizard: afbeelding, samenvatting, staten ---------- */

.image-row { display: flex; align-items: center; gap: 14px; }
.image-row__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Vlak met border en lichte achtergrond rond de afbeelding-upload. */
.upload-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.optional { color: var(--text-muted); font-weight: 400; }

.thumb {
  flex: none;
  width: 104px;
  height: 76px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  object-fit: cover;
}

.thumb--empty {
  display: grid;
  place-items: center;
  padding: 4px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.summary {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.summary__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.summary__row:last-child { border-bottom: 0; }
.summary dt { margin: 0; color: var(--text-muted); font-size: 13px; }
.summary dd { margin: 0; }

.loading {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 0;
  text-align: center;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Voortgangsindicator ---------- */

.stepper {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 14px 20px 0;
  list-style: none;
}

.stepper__item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.stepper__item.is-active { border-bottom-color: var(--primary); color: var(--text); font-weight: 600; }
.stepper__item.is-done { border-bottom-color: var(--primary); color: var(--text); }

.stepper__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 11px;
  font-weight: 600;
}

.stepper__item.is-active .stepper__num,
.stepper__item.is-done .stepper__num { background: var(--primary); color: #fff; }

.stepper__num svg { width: 12px; height: 12px; }

.stepper__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Typekeuze als cards ---------- */

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.type-card:hover { border-color: var(--primary); background: var(--bg); }

.type-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-weight: 600;
}

.type-card__icon { display: grid; place-items: center; color: currentColor; }
.type-card__name { font-size: 13px; line-height: 1.25; }

.type-cell { display: inline-flex; align-items: center; gap: 8px; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover { color: var(--text); }

/* ---------- Melding ---------- */

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  max-width: 520px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #1d2430;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .25);
}

.toast[hidden] { display: none; }
.toast--danger { background: var(--danger); }

/* ---------- Responsief ---------- */

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand { padding: 0 12px 0 4px; }
  .nav { flex-direction: row; }
  .nav a { white-space: nowrap; }
  .sidebar__footer { display: none; }
  .topbar { padding: 14px 16px; }
  .view { padding: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .overlay { padding: 12px; }
  .modal { max-height: calc(100vh - 24px); }
  .summary__row { grid-template-columns: 1fr; gap: 4px; }
  .address__grid { grid-template-columns: 1fr; }
  .stepper { padding: 12px 16px 0; gap: 4px; }
  .stepper__item { font-size: 11px; gap: 5px; }
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .detail__aside--sticky { position: static; }
}

/* ---------- Zoekresultaten (sidebar) ---------- */

.results { display: grid; gap: 10px; }

.results__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.disclaimer {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.alert--warning { background: var(--warning-soft); color: var(--warning); }

.spinner--sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, .45);
  border-top-color: #fff;
}

/* ---------- Prijsverloop: grafiek ---------- */

.chart { display: grid; gap: 8px; }

.chart__svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--text-muted);
}

.chart__axis { stroke: var(--border); stroke-width: 1; }
.chart__zero { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 4 4; }

.chart__line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart__dot { fill: var(--primary); }
.chart__dot--anchor { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }

.chart__marker { stroke: var(--warning); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart__marker-dot { fill: var(--warning); stroke: var(--surface); stroke-width: 2; }

.chart__label {
  fill: var(--text-muted);
  font-size: 11px;
  font-family: inherit;
}

.chart__hover { pointer-events: none; }

.chart__hover-line {
  stroke: var(--text-muted);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.chart__hover-dot { fill: var(--text); stroke: var(--surface); stroke-width: 2; }
.chart__hover-tip { fill: rgba(16, 24, 40, .92); }

.chart__hover-text {
  fill: #fff;
  font-size: 11.5px;
  font-weight: 500;
  font-family: inherit;
}

.chart__svg { cursor: crosshair; }

.chart__legend { margin: 0; color: var(--text-muted); font-size: 12px; }

.chart__current {
  display: block;
  margin-top: 2px;
  color: var(--warning);
  font-weight: 500;
}

/* ---------- Keuze tussen twee werkwijzen ---------- */

.mode-choice {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.mode-option {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.mode-option:hover { border-color: var(--primary); }
.mode-option.is-active { border-color: var(--primary); background: var(--primary-soft); }
.mode-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-option__title { font-size: 14px; font-weight: 600; }
.mode-option__text { color: var(--text-muted); font-size: 13px; }

@media (max-width: 760px) {
  .mode-choice { grid-template-columns: 1fr; }
}

/* ---------- Presentatie: fotobibliotheek ---------- */

.photo-card { position: relative; cursor: grab; }
.photo-card:active { cursor: grabbing; }
.photo-card.is-dragging { opacity: .45; }
.photo-card.is-drop-target { outline: 2px dashed var(--primary); outline-offset: 2px; }

.photo-card__handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  color: var(--text-muted);
}

/* ---------- Presentatie: rich text ---------- */

.richtext__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--bg);
}

.rt-btn {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.rt-btn:hover { background: var(--surface); border-color: var(--border-strong); }
.rt-btn.is-bold { font-weight: 700; }
.rt-btn.is-italic { font-style: italic; }
.rt-btn.is-underline { text-decoration: underline; }
.rt-btn.is-strike { text-decoration: line-through; }

.richtext__link { display: inline-flex; gap: 6px; align-items: center; }
.richtext__link[hidden] { display: none; }
.richtext__link input { width: 180px; }

.richtext__area {
  min-height: 140px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.6;
  overflow: auto;
}

.richtext__area:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.richtext__area p { margin: 0 0 10px; }
.richtext__area ul, .richtext__area ol { margin: 0 0 10px; padding-left: 22px; }
.richtext__area a { color: var(--primary-hover); }

/* ---------- Presentatie: highlights ---------- */

.highlight-add { display: flex; gap: 8px; flex-wrap: wrap; }

.highlight-add input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }

.chip--removable { display: inline-flex; align-items: center; gap: 6px; padding-right: 4px; cursor: default; }
.chip--static { cursor: default; }

.chip__x {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 24, 40, .08);
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.chip__x:hover { background: rgba(16, 24, 40, .18); }

/* ---------- Presentatie: advertentievoorbeeld ---------- */

.ad-preview { display: grid; gap: 12px; margin-top: 12px; }

.ad-preview__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.ad-preview__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ad-preview__body { display: grid; gap: 8px; }
.ad-preview__title { font-size: 15px; font-weight: 600; }
.ad-preview__place { color: var(--text-muted); font-size: 13px; }
.ad-preview__intro { color: var(--text); font-size: 14px; }

.ad-preview__description {
  position: relative;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  overflow-wrap: break-word;
}

.ad-preview__description.is-clipped {
  max-height: 88px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.ad-preview__description p { margin: 0 0 8px; }
.ad-preview__description ul, .ad-preview__description ol { margin: 0 0 8px; padding-left: 20px; }

/* ---------- Publicatie ---------- */

.checklist {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.checklist__item:last-child { border-bottom: 0; }

.checklist__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg);
  color: var(--text-muted);
}

.checklist__item.is-ok .checklist__icon { background: var(--success-soft); color: var(--success); }
.checklist__item.is-missing .checklist__icon { background: var(--danger-soft); color: var(--danger); }
.checklist__item.is-warning .checklist__icon { background: var(--warning-soft); color: var(--warning); }

.checklist__label { flex: 1; }
.checklist__item.is-warning .checklist__label { display: grid; gap: 2px; }

.checklist__hint { color: var(--text-muted); font-size: 13px; }

.checklist__item.is-missing .checklist__label { color: var(--text-muted); }

.checklist__link {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.checklist__link:hover { text-decoration: underline; }

.destination-list { display: grid; gap: 12px; }

.destination {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.destination__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.destination__logo--site { background: var(--primary); }

.destination__info { display: grid; gap: 2px; flex: 1; min-width: 160px; }
.destination__name { font-size: 14px; font-weight: 600; }
.destination__meta { color: var(--text-muted); font-size: 13px; }

.destination__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Verwijderen: wat er verdwijnt ---------- */

.consequences {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
}

.consequence {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg);
}

.consequence__label {
  flex: none;
  width: 92px;
  font-size: 13px;
  font-weight: 600;
}

.consequence__text { font-size: 13px; color: var(--text-muted); }

@media (max-width: 560px) {
  .consequence { flex-direction: column; gap: 2px; }
  .consequence__label { width: auto; }
}

/* ---------- Inklapbaar registratienummer ---------- */

.collapsible { display: grid; gap: 12px; }

.registration-field { display: grid; }
.registration-field[hidden] { display: none; }

.disclosure__value { color: var(--text-muted); font-weight: 400; }
.disclosure__value:empty { display: none; }
.disclosure[aria-expanded="true"] .disclosure__value { display: none; }

/* ---------- Bedden per ruimte en keuzelijst met iconen ---------- */

.multiselect__search-wrap { padding: 0 0 8px; }

.multiselect__search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
}

.multiselect__extra {
  padding: 0 0 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.facility__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.facility[hidden] { display: none; }

.multiselect__group[hidden] { display: none; }

.bed-list { display: grid; gap: 8px; margin-bottom: 12px; }

.bed-row {
  display: grid;
  grid-template-columns: 1fr 88px 32px;
  gap: 8px;
  align-items: center;
}

.bed-row select, .bed-row input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
}

.bed-actions { display: flex; gap: 8px; }

.room-card__beds { margin: 0 0 12px; font-size: 14px; }

/* ---------- Kalender ---------- */

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.calendar-property {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-property__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.calendar-property select {
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.calendar-toolbar .segmented {
  margin-bottom: 0;
}

.calendar-toolbar__period {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-toolbar__title {
  min-width: 190px;
  font-weight: 600;
  text-align: center;
}

.calendar-toolbar__step,
.calendar-toolbar__today {
  text-decoration: none;
}

.calendar-toolbar__step {
  padding: 4px 10px;
}

.calendar__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.calendar__summary {
  margin-left: auto;
  font-weight: 500;
}

.calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.calendar__dot--booked { background: var(--border-strong); }

.calendar {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar__grid--head {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.calendar__weekday {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.calendar__day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  width: 100%;
  padding: 6px;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
}

.calendar__day:hover {
  background: var(--primary-soft);
}

.calendar__day:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.calendar__grid .calendar__day:nth-child(7n) { border-right: 0; }
.calendar__grid:last-child .calendar__day:nth-last-child(-n + 7) { border-bottom: 0; }

.calendar__day--empty {
  background: var(--bg);
  cursor: default;
}

.calendar__day--empty:hover {
  background: var(--bg);
}

.calendar__day--weekend {
  background: #fbfcfd;
}

.calendar__day--booked {
  background: var(--booked-soft);
}

.calendar__day--today {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar__date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.calendar__day--today .calendar__date {
  background: var(--primary);
  color: #fff;
}

.calendar__events {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calendar__price {
  align-self: flex-start;
  margin-top: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.calendar__hint {
  margin-top: 10px;
}

.calendar__event {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e9edf2;
  color: var(--text);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.calendar__event-guest {
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar__event .booking-channel {
  width: 13px;
  height: 13px;
}

.calendar__event:hover {
  background: #e1e6ec;
}

.booking-channel {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.booking-channel svg {
  display: block;
  width: 100%;
  height: 100%;
}

.booking-channel-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booking-channel-label .booking-channel {
  width: 16px;
  height: 16px;
}

.calendar__legend-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar__legend-channel .booking-channel {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .calendar {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .calendar__grid {
    min-width: 700px;
  }

  .calendar__day {
    min-height: 84px;
  }

  .calendar__event {
    font-size: 10px;
  }
}

/* ---------- Kalender: jaarweergave ---------- */

.year-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.year-months {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.year-month-block {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.year-month-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.year-month-block__title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
}

.year-month-block__title:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.year-month-block__count {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.year-month-block__empty {
  margin: 0;
}

.year-bookings {
  display: flex;
  flex-direction: column;
}

.year-booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.year-booking:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.year-booking__guest {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.year-booking__dates {
  color: var(--text-muted);
  font-size: 12px;
}

.year-booking__nights {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.year-occupancy {
  position: sticky;
  top: 16px;
}

.year-occupancy__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.year-occupancy__title {
  font-size: 16px;
}

.year-occupancy__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.year-occupancy__row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.year-occupancy__row:hover .year-occupancy__month {
  color: var(--primary-hover);
}

.year-occupancy__month {
  text-transform: capitalize;
}

.year-occupancy__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.year-occupancy__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.year-occupancy__value {
  text-align: right;
  font-weight: 600;
}

.year-occupancy__row.is-current {
  color: var(--primary-hover);
  font-weight: 600;
}

@media (max-width: 900px) {
  .year-layout {
    grid-template-columns: 1fr;
  }

  .year-occupancy {
    position: static;
  }
}

@media (max-width: 700px) {
  .calendar-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-toolbar__left {
    width: 100%;
  }

  .calendar-property {
    width: 100%;
  }

  .calendar-property select {
    flex: 1;
    max-width: none;
  }

  .calendar-toolbar__period {
    width: 100%;
    flex-wrap: wrap;
  }

  .calendar-toolbar__title {
    min-width: 0;
    flex: 1;
  }
}

/* ---------- Prijsberekening in de kalender-sidebar ---------- */

.price-section {
  display: grid;
  gap: 6px;
}

.price-section__title {
  font-size: 14px;
  font-weight: 600;
}

.price-section--totals {
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

/* ---------- Kalender: dagselectie en prijs-sidebar ---------- */

.calendar__selection {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 500;
}

.calendar__selection[hidden] {
  display: none;
}

.calendar__day--selected,
.calendar__day--selected:hover {
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--text);
}

#price-drawer {
  pointer-events: none;
}

#price-drawer.is-open {
  pointer-events: none;
}

#price-drawer .drawer__panel {
  width: min(420px, 100%);
  pointer-events: auto;
}

.price-drawer__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.price-booking {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.price-booking .hint {
  margin-top: 2px;
}


@media (min-width: 1200px) {
  .main {
    transition: margin-right .28s cubic-bezier(.3, .8, .3, 1);
  }

  body.price-drawer-open .main {
    margin-right: 420px;
  }
}

/* ---------- Dashboard: aankomende en recente boekingen ---------- */

.dashboard-bookings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-bookings__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-bookings__title {
  font-size: 16px;
}

.dashboard-bookings__list {
  display: flex;
  flex-direction: column;
}

.dashboard-booking {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-booking:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-booking__channel {
  width: 18px;
  height: 18px;
}

.dashboard-booking__main {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}

.dashboard-booking__main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-booking__meta {
  display: grid;
  gap: 1px;
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
}

@media (max-width: 900px) {
  .dashboard-bookings {
    grid-template-columns: 1fr;
  }
}

/* ---------- Boekingen: sorteren ---------- */

.bookings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.bookings-toolbar__field {
  display: grid;
  gap: 4px;
}

.bookings-toolbar__field label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.bookings-toolbar__field select {
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

/* ---------- Kalender: dagprijs aanpassen ---------- */

.price-edit {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.price-edit__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.price-edit__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.price-edit__currency {
  color: var(--text-muted);
  font-weight: 600;
}

.price-edit input {
  width: 110px;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.price-edit--locked {
  background: var(--warning-soft);
  border-color: transparent;
}

.price-edit--locked .price-edit__title {
  color: var(--warning);
}

/* ---------- Rendement ---------- */

.rendement-status {
  margin: 12px 0 4px;
}

/* ---------- Rendement: platformkosten en commissie ---------- */

.rendement-costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.rendement-cost-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.rendement-cost-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.rendement-cost-card__head h3 {
  font-size: 15px;
}

.rendement-cost-card__value {
  margin: 4px 0;
  font-size: 20px;
  font-weight: 700;
}

.rendement-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.rendement-channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rendement-channel .booking-channel {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .rendement-costs {
    grid-template-columns: 1fr;
  }
}

/* ---------- Accommodatie: sub-tabs per hoofdcategorie ---------- */

.property-subtabs {
  margin-top: -6px;
}

/* ---------- Boekingen: paginering ---------- */

.bookings-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.pager__item:hover {
  background: var(--bg);
}

.pager__item--current {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.pager__step.is-disabled {
  opacity: .4;
  pointer-events: none;
}

.pager__ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
}

/* ---------- Boekingsdetail en klikbare boekingen ---------- */

.booking-link {
  color: inherit;
  text-decoration: none;
}

.booking-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.dashboard-booking {
  color: inherit;
  text-decoration: none;
}

.dashboard-booking:hover .dashboard-booking__main strong {
  color: var(--primary-hover);
  text-decoration: underline;
}

.price-booking__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* ---------- Gastenlijst ---------- */

.guest-channels {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.guest-channels .booking-channel {
  width: 16px;
  height: 16px;
}

/* ---------- Boekingen: filters, acties en conflicten ---------- */

.bookings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.bookings-filters {
  margin-bottom: 12px;
}

.bookings-toolbar__field input {
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.bookings-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.conflict-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: var(--danger);
  background: var(--danger-soft);
}

.conflict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.conflict-booking {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.conflict-booking__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conflict-booking__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.guests-search {
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .conflict-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Kalender: check-in en check-out ---------- */

.calendar__event-kind {
  flex: 0 0 auto;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar__event--checkout {
  border: 1px dashed var(--border-strong);
}

.calendar__event[data-booking-status="pending"] {
  box-shadow: inset 2px 0 0 var(--warning);
}
