:root {
  --brand: #1a74e4;         /* move.nl bright blue */
  --brand-dark: #1c3a63;    /* dark blue headings */
  --brand-strong: #135fc0;  /* button hover */
  --brand-soft: #e9f1fc;    /* light blue tint */
  --accent: #e07a12;        /* move.nl orange */
  --accent-dark: #c76a0c;
  --bg1: #f2f5f8; --bg2: #e9eef3;
  --card: #ffffff;
  --text: #45505c; --muted: #7a8694; --line: #e4e9ef;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(16,42,80,.08);
  --shadow-sm: 0 2px 8px rgba(16,42,80,.06);
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text);
  background: linear-gradient(160deg, var(--bg1), var(--bg2)) fixed;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { color: var(--brand-dark); margin: 0; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- header ---------- */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.app-header .logo img { height: 38px; display: block; }
.app-header nav { display: flex; align-items: center; gap: 18px; }
.app-header nav a { color: var(--brand-dark); font-weight: 600; font-size: 14px; }
.who { color: var(--muted); font-size: 13px; font-weight: 400; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 26px 22px 70px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px; }

/* ---------- buttons ---------- */
.btn, button {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--brand); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 20px; font-size: 15px; font-weight: 600; font-family: inherit;
}
.btn:hover, button:hover { background: var(--brand-strong); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost {
  background: #fff; color: var(--brand-dark); border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- cards / forms ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
input, select, textarea {
  width: 100%; background: #fff; border: 1px solid #d7deea; color: var(--text);
  border-radius: 10px; padding: 11px 12px; font-size: 15px; margin-top: 5px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .col2 { grid-column: 1 / -1; }
details.add { margin: 6px 0 14px; }
details.add > summary { list-style: none; display: inline-flex; }
details.add > summary::-webkit-details-marker { display: none; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted);
  background: #eef2f7; border-radius: 999px; padding: 4px 11px;
}
.pill-bezichtiging, .pill-aankoop, .pill-verkoop { background: #eef1f4; color: #67727f; }
.badge-num { background: var(--brand); color: #fff; border-radius: 999px; font-size: 12px;
  font-weight: 700; padding: 1px 9px; }

/* ---------- login ---------- */
.login-wrap { max-width: 400px; margin: 7vh auto; }
.login-wrap .logo { text-align: center; margin-bottom: 18px; }
.login-wrap .logo img { height: 52px; }
.alert { background: #fdecec; color: #c0392b; padding: 11px 13px; border-radius: 10px; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 16px; text-align: center; }
code { background: #eef2f7; padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* ---------- dossier overview ---------- */
.overview { display: grid; grid-template-columns: 200px minmax(0, 660px); gap: 30px; align-items: start; justify-content: start; }
.filters .sort { margin-bottom: 20px; }
.filters .sort-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.filters .sort-row select { margin: 0; }
.filters .sort-row .dir { flex: 0 0 auto; width: 40px; padding: 9px 0; text-align: center; background: #fff;
  border: 1px solid #d7deea; border-radius: 10px; color: var(--brand); cursor: pointer; }
.filters h3 { font-size: 16px; margin-bottom: 14px; }
.filters .group { margin-bottom: 18px; }
.filters .check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin: 8px 0; }
.filters .check input { width: auto; margin: 0; }
.filters .count { margin-left: auto; color: var(--muted); font-size: 13px; }
.search { position: relative; margin-bottom: 18px; }
.search input { padding-left: 40px; border-radius: 999px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }

.dossier-list { display: flex; flex-direction: column; gap: 16px; }
.dossier-card {
  display: grid; grid-template-columns: 190px 1fr auto; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .05s;
}
.dossier-card:hover { box-shadow: var(--shadow); }
.dossier-card:active { transform: scale(.997); }
.dossier-photo {
  width: 190px; height: 130px; border-radius: 12px; overflow: hidden; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
}
.dossier-photo img { width: 100%; height: 100%; object-fit: cover; }
.dossier-photo .ph { opacity: .35; }
.dossier-body .straat { font-size: 19px; font-weight: 700; color: var(--brand-dark); margin: 8px 0 2px; }
.dossier-body .plaats { color: var(--brand); font-size: 14px; }
.dossier-body .prijs { margin-top: 12px; color: var(--brand); font-weight: 600; }
.kantoor { text-align: center; padding: 0 6px; min-width: 140px; }
.kantoor .logobox { display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff; }
.kantoor img { height: 38px; margin: 0; }
.kantoor .naam { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- dossier detail ---------- */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-start; margin-bottom: 0;
  background-size: cover; background-position: center 42%; box-shadow: var(--shadow);
}
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(233,240,248,.97) 0%, rgba(233,240,248,.74) 44%, rgba(233,240,248,.10) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 30px 32px; color: var(--brand-dark); max-width: 62%; }
.hero-inner .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); font-weight: 600; }
.hero-inner h1 { color: var(--brand-dark); margin: 6px 0 2px; }
.hero-inner .plaats { color: var(--brand); font-size: 16px; margin-bottom: 6px; }
.hero-inner .prijs { color: var(--brand-dark); font-weight: 700; margin-bottom: 16px; }
.hero-pres { margin-top: 4px; }
.hero-contact {
  position: absolute; z-index: 2; right: 24px; top: 24px; width: 340px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.hero-contact .top { display: flex; gap: 16px; align-items: center; padding: 20px 20px 8px; }
.hero-contact .top .logobox { border: 1px solid var(--line); border-radius: 8px; padding: 8px; flex: 0 0 auto; }
.hero-contact .top img { height: 44px; display: block; }
.hero-contact .top .kantoornaam { font-weight: 700; color: var(--brand-dark); font-size: 17px; line-height: 1.25; }
.hero-contact .kantoorlink { display: block; padding: 0 20px 16px; color: var(--brand); font-size: 13.5px; }
.hero-contact .actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.hero-contact .actions a { padding: 14px; text-align: center; color: var(--brand-dark); font-weight: 600;
  font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.hero-contact .actions a:first-child { border-right: 1px solid var(--line); }
.hero-contact .actions a:hover { background: var(--brand-soft); }
.hero-contact .actions .ic { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand); font-size: 15px; }

.tabs { display: inline-flex; gap: 4px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: 6px; margin: -28px 0 24px 22px; position: relative; z-index: 3; flex-wrap: wrap; }
.tabs a { padding: 10px 18px; border-radius: 10px; color: var(--brand); font-weight: 600; font-size: 15px; }
.tabs a.active { background: var(--brand-soft); color: var(--brand-dark); }
.tabs a:hover:not(.active) { background: #eef3fb; }

.detail-cols { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.section-title { margin: 4px 0 14px; }

.quick { background: var(--brand-soft); border-radius: 14px; padding: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.quick .qbtn { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px; font-weight: 600; color: var(--brand-dark); cursor: pointer; }
.quick .qbtn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }

.todo-card { display: flex; gap: 14px; align-items: flex-start; background: #f6f8fb; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin: 10px 0; }
.todo-card .ico { color: var(--accent); font-size: 20px; flex: 0 0 auto; }
.todo-card h4 { margin: 0 0 3px; color: var(--brand-dark); font-size: 15px; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.afspraak { padding: 12px 0; border-top: 1px solid var(--line); }
.afspraak:first-of-type { border-top: 0; }
.afspraak .a-titel { font-weight: 600; color: var(--brand-dark); }
.afspraak .a-tijd { color: var(--muted); font-size: 13px; }

/* timeline of acties */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: #cdd6e4; flex: 0 0 auto; margin-top: 2px; z-index: 1; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tl-bezig .tl-dot { background: var(--accent); }
.tl-klaar .tl-dot { background: #22a559; }
.tl-body { flex: 1; }
.tl-body strong { color: var(--brand-dark); }
.ms-form { margin-top: 6px; } .ms-form select { width: auto; padding: 6px 10px; font-size: 13px; margin: 0; }
.status-badge { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.sb-open { background: #eef2f7; color: var(--muted); }
.sb-bezig { background: #fdf0e2; color: #b96a12; }
.sb-klaar { background: #e7f5ec; color: #157a4a; }

/* bod uitbrengen tab (move.nl-style) */
.bod-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 16px; flex-wrap: wrap; }
.bod-badge { border: 1px dashed #c3ccd8; border-radius: 999px; padding: 8px 16px; color: var(--brand);
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.bod-badge .i { color: var(--brand); }
.bod-card { background: #f4f6f9; border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 780px; }
.bod-intro { color: var(--accent); font-weight: 600; margin: 0 0 24px; }
.bod-form .field { margin-bottom: 22px; }
.bod-form .flabel { color: var(--brand); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.bod-form .flabel.req::before { content: "* "; color: #e2452c; }
.euro-input { display: flex; align-items: center; gap: 6px; max-width: 300px; background: #fff;
  border: 1px solid #d7deea; border-radius: 9px; padding: 0 12px; }
.euro-input span { color: var(--muted); }
.euro-input input { border: 0; margin: 0; }
.euro-input input:focus { outline: 0; }
.bod-form label.radio { display: flex; align-items: center; gap: 11px; color: var(--text);
  font-weight: 400; font-size: 15px; margin: 9px 0; cursor: pointer; }
.bod-form label.radio input { width: auto; margin: 0; }

/* woning tab */
.spec { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; }
.spec dt { color: var(--muted); } .spec dd { margin: 0; font-weight: 600; color: var(--brand-dark); }
/* mosaic gallery — 1 big + 2x2 grid (move.nl "Impressie en media") */
.mosaic { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 470px; }
.mosaic a { display: block; border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.mosaic a img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic .big { grid-row: 1 / 3; }
.mosaic .big .dossier-photo { width: 100%; height: 100%; border-radius: 0; }
.mosaic .more { position: absolute; inset: 0; background: rgba(0,45,85,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .mosaic .big { grid-row: auto; grid-column: 1 / -1; height: 220px; }
  .mosaic a:not(.big) { height: 110px; }
}
.elabel { display: inline-block; color: #fff; font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 5px; background: #6b7280; }
.el-a, .el-a\+ { background: #22a559; } .el-b { background: #6cbf3d; } .el-c { background: #b7cf2f; color: #33420a; }
.el-d { background: #f5c518; color: #4a3a05; } .el-e { background: #f39019; } .el-f { background: #ef6a2a; } .el-g { background: #e2452c; }

/* documents */
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.docs a { font-weight: 600; }
.docs time { color: var(--muted); font-size: 12px; margin-left: auto; }
.upload { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.upload input[type=file] { margin: 0; }
.note { border-left: 3px solid var(--brand); background: #f6f8fb; padding: 10px 14px; border-radius: 8px; margin: 8px 0; }
.note p { margin: 0; } .note time { color: var(--muted); font-size: 12px; }
.back { color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 12px; }

@media (max-width: 860px) {
  .overview { grid-template-columns: 1fr; }
  .detail-cols { grid-template-columns: 1fr; }
  .hero-contact { position: static; width: auto; margin: -10px 16px 16px; }
  .hero-inner { max-width: 100%; }
  .dossier-card { grid-template-columns: 120px 1fr; }
  .dossier-photo { width: 120px; height: 90px; }
  .kantoor { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 10px; }
  .kantoor img { margin: 0; }
}
