/* ===== Kleuren (hier pas je alles makkelijk aan) ===== */
:root {
  --oranje: #e8590c;
  --blauw: #1a56a0;
  --prijs: #b5360c;
  --tekst: #222;
  --grijs: #666;
  --rand: #ccc;
  --achtergrond: #e8e8e8;

  --soms: #fff3d6;
  --raar: #fde3cc;
  --niet: #ffc9a3;
  --ooit: #dddddd;
}

/* ===== Basis ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: var(--tekst);
  background: var(--achtergrond);
}

a { color: var(--blauw); }
h1, h2, h3 { margin: 0; }

.container {
  max-width: 960px;
  margin: 0 auto;
}

/* ===== Balk bovenaan ===== */
.topbar {
  background: #333;
  color: #fff;
  font-size: 13px;
  padding: 10px 15px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-size: 11px; }

/* ===== Pagina ===== */
.page { background: #fff; padding-bottom: 20px; }

/* ===== Header ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}
.logo { font-size: 26px; font-weight: bold; color: var(--oranje); }
.logo span { color: #333; }
.tagline { font-size: 11px; color: var(--grijs); }

.button {
  background: var(--oranje);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 3px;
}

/* ===== Zoekbalk ===== */
.searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 12px 15px;
  background: #f0f0f0;
  border-top: 1px solid var(--rand);
  border-bottom: 1px solid var(--rand);
}
.searchbar label { font-size: 11px; font-weight: bold; color: var(--grijs); }
.searchbar input,
.searchbar select { display: block; margin-top: 3px; }
.searchbar button,
.form-row button {
  background: var(--blauw);
  color: #fff;
  border: 0;
  padding: 8px 18px;
  border-radius: 3px;
  cursor: pointer;
}

input[type="text"], select, textarea {
  padding: 6px 8px;
  border: 1px solid var(--rand);
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
}

/* ===== Layout: zijbalk + hoofdinhoud ===== */
.layout {
  display: flex;
  gap: 20px;
  padding: 15px;
  align-items: flex-start;
}
.sidebar { width: 180px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }

/* ===== Zijbalk ===== */
.box { border: 1px solid var(--rand); margin-bottom: 15px; font-size: 13px; }
.box h3 {
  font-size: 13px;
  background: #eee;
  padding: 7px 10px;
  border-bottom: 1px solid var(--rand);
}
.box-body { padding: 10px; }
.box-body label { display: block; margin-bottom: 6px; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { padding: 7px 10px; }
.menu .active {
  background: #fff0e5;
  font-weight: bold;
  border-left: 3px solid var(--oranje);
}
.price-filter input { width: 60px; }
.info-links { margin: 0; padding-left: 28px; }
.info-links li { margin-bottom: 6px; }

/* ===== Titel en sortering ===== */
.breadcrumb { margin: 0 0 12px; color: var(--grijs); }
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--oranje);
}
.results-head h1 { font-size: 16px; }
.results-head label { font-size: 12px; color: var(--grijs); }

/* ===== Zoekertjes ===== */
.ad {
  display: flex;
  gap: 15px;
  padding: 12px 5px;
  border-bottom: 1px solid #eee;
}
.ad:nth-child(even) { background: #f8f8f8; }

.photo {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  background: #eee;
  border: 1px solid var(--rand);
  color: #999;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-text { flex: 1; }
.ad-text h2 { font-size: 17px; }
.ad-text p { margin: 4px 0 6px; color: var(--grijs); }

.ad-info { text-align: right; font-size: 12px; color: var(--grijs); min-width: 110px; }
.price { font-size: 16px; font-weight: bold; color: var(--prijs); }
.date { font-size: 11px; color: #999; }

/* ===== Labels (hoe kapot) ===== */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border: 1px solid var(--rand);
}
.label.soms { background: var(--soms); }
.label.raar { background: var(--raar); }
.label.niet { background: var(--niet); }
.label.ooit { background: var(--ooit); }

/* ===== Paginering ===== */
.pagination { text-align: center; margin: 15px 0 25px; font-size: 12px; }
.pagination a,
.pagination .current {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--rand);
  margin: 0 2px;
}
.pagination .current { background: var(--oranje); color: #fff; border-color: var(--oranje); }

/* ===== Kopjes van secties ===== */
section { margin-bottom: 30px; }
.section-title {
  font-size: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rand);
  margin-bottom: 12px;
}
.section-title small { font-size: 11px; font-weight: normal; color: #999; }

/* ===== Tabellen ===== */
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--rand); padding: 8px 10px; text-align: left; }

.table-labels th { width: 190px; font-size: 13px; }
.table-labels .soms { background: var(--soms); }
.table-labels .raar { background: var(--raar); }
.table-labels .niet { background: var(--niet); }
.table-labels .ooit { background: var(--ooit); }
.table-labels td { background: #fff; }

.table-prices th { background: #eee; font-size: 13px; }
.table-prices .highlight { background: var(--soms); }
.table-prices .free { color: green; font-weight: bold; }

/* ===== Hoe werkt het ===== */
.two-columns { display: flex; gap: 15px; }
.card { flex: 1; border: 1px solid var(--rand); background: #f8f8f8; padding: 12px; font-size: 13px; }
.card h3 { color: var(--blauw); font-size: 14px; margin-bottom: 6px; }
.card ol { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 5px; }

/* ===== Tips ===== */
.tips { background: #fdf6dc; border: 1px solid #e6d9a0; padding: 14px; font-size: 13px; }
.tips h2 { color: #8a5a00; font-size: 16px; margin-bottom: 8px; }
.tips ul { margin: 0; padding-left: 20px; }

/* ===== Formulier ===== */
.form-box { border: 1px solid var(--rand); }
.form-box h2 { background: var(--oranje); color: #fff; font-size: 15px; padding: 10px 12px; }
.form-box form { padding: 12px; }
.form-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.form-row > label:first-child { width: 110px; font-weight: bold; flex-shrink: 0; }
.form-row input[type="text"] { width: 240px; }
.form-row textarea { width: 280px; }
.form-row .checkbox { font-weight: normal; }
.form-row button { background: var(--oranje); font-weight: bold; }

/* ===== Reviews ===== */
blockquote {
  margin: 0 0 8px;
  padding: 8px 10px;
  background: #f5f5f5;
  border-left: 3px solid var(--oranje);
}
cite { font-style: normal; color: var(--grijs); }

/* ===== Veelgestelde vragen ===== */
details { border-bottom: 1px dotted var(--rand); padding: 8px 0; }
summary { cursor: pointer; font-weight: bold; color: var(--blauw); }
details p { margin: 8px 0 0; }

/* ===== Voetbalk ===== */
.footer {
  max-width: 960px;
  margin: 0 auto 20px;
  background: #f0f0f0;
  border: 1px solid var(--rand);
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: var(--grijs);
}
.footer p { margin: 8px 0 0; }

/* ===== Smalle schermen (telefoon) ===== */
@media (max-width: 700px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .two-columns { flex-direction: column; }
  .header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ad { flex-wrap: wrap; }
  .form-row { flex-direction: column; }
  .form-row input[type="text"], .form-row textarea { width: 100%; }
}

img.photo {
  object-fit: cover;
}