/* ============================= */
/* 🚗 VOERTUIGEN PAGINA LAYOUT */
/* Filters links – voertuigen rechts */
/* ============================= */

.voertuigen-pagina {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr; /* links filters | rechts resultaten */
  gap: 30px;
  font-family: "Inter", Arial, sans-serif;
}

/* Titel over volle breedte */
.voertuigen-pagina h1 {
  grid-column: 1 / -1;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #111;
}

/* ============================= */
/* 🔍 FILTERS (LINKERKANT) */
/* ============================= */
.voertuigen-pagina .filters {
  position: sticky;
  top: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: fit-content;
}

.voertuigen-pagina .filters input,
.voertuigen-pagina .filters select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.voertuigen-pagina .filters input:focus,
.voertuigen-pagina .filters select:focus {
  border-color: #007bff;
  outline: none;
}

/* ============================= */
/* 🚘 VOERTUIGEN (RECHTERKANT) */
/* ============================= */
.voertuigen-pagina .voertuigen {
  display: flex;
  flex-direction: column; /* 🔥 1 per rij */
  gap: 20px;
}

/* ============================= */
/* 🧱 VOERTUIG CARD */
/* ============================= */
.voertuigen-pagina .voertuig {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.voertuigen-pagina .voertuig:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

/* Afbeelding links */
.voertuigen-pagina .voertuig-foto {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Content rechts */
.voertuigen-pagina .voertuig-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.voertuigen-pagina .voertuig h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111;
}

.voertuigen-pagina .voertuig p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.voertuigen-pagina .voertuig .prijs {
  font-size: 1.05rem;
  font-weight: 800;
  color: #007bff;
  margin-top: 8px;
}

/* ============================= */
/* ⚡ TURBO LABEL */
/* ============================= */
.voertuigen-pagina .voertuig.turbo {
  position: relative;
}

.voertuigen-pagina .voertuig.turbo::before {
  content: "Turbo Boost";
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff004c;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* ============================= */
/* 📱 RESPONSIVE */
/* ============================= */
@media (max-width: 900px) {
  .voertuigen-pagina {
    grid-template-columns: 1fr;
  }

  .voertuigen-pagina .filters {
    position: relative;
    top: auto;
  }

  .voertuigen-pagina .voertuig {
    flex-direction: column;
  }

  .voertuigen-pagina .voertuig-foto {
    width: 100%;
    height: 200px;
  }
}
/* ============================= */
/* 🔥 ADVERTENTIE DETAIL PAGINA */
/* ============================= */

.advertentie-detail {
  background: #f6f7f9;
  padding: 40px 16px;
  font-family: "Inter", Arial, sans-serif;
}

/* GRID WRAPPER */
.advertentie-wrapper {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

/* ============================= */
/* 📸 SLIDER */
/* ============================= */

.slider {
  position: relative;
}

.slider img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

/* SLIDER BUTTON BASIS */
.slider-btn {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);
  transition: 
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;

  color: white;
  font-size: 26px;
}

/* POSITIES */
.slider-btn.left { left: 14px; }
.slider-btn.right { right: 14px; }

/* HOVER — GEEN SPRONG */
.slider-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.favoriet-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.favoriet-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.favoriet-btn:active {
  transform: scale(0.95);
}

.favoriet-btn img {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* 💥 POP ANIMATIE */
@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.favoriet-btn.animate img {
  animation: heart-pop 0.35s ease;
}

/* ============================= */
/* 🧾 RECHTERKANT */
/* ============================= */

.advertentie-right h1 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

/* PRIJS */
.prijs {
  font-size: 36px;
  font-weight: 800;
  color: #0a7cff;
  margin-bottom: 20px;
}

.koop-btn {
  width: 100%;
  background: #007bff;
  color: #ffffff;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 25px;
  border: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transition: all 0.3s ease;
}

/* ZELFDE HOVER ALS .plaats-btn */
.koop-btn:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.koop-btn:active {
  transform: translateY(-1px);
}

.koop-btn .chat-icon {
    width: 24px;   /* grootte van de afbeelding */
    height: 24px;
}

/* ============================= */
/* 📋 SPECIFICATIES */
/* ============================= */

.specificaties {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  border-top: 1px solid #eee;
}

.specificaties li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.specificaties li span:first-child {
  color: #666;
}

.specificaties li span:last-child {
  font-weight: 600;
  color: #111;
}

/* ============================= */
/* 👤 VERKOPER KAART */
/* ============================= */

.verkoper-kaart {
  grid-column: 2;
  background: #f9fafb;
  border-radius: 16px;
  padding: 22px;
  box-shadow: inset 0 0 0 1px #eee;
}

.verkoper-kaart h3 {
  margin-top: 0;
  font-size: 18px;
}

.verkoper-kaart p {
  margin: 6px 0;
  font-size: 14px;
  color: #444;
}

.sterren {
  color: #ffb400;
  font-size: 18px;
  margin-bottom: 6px;
}

.betrouwbaar {
  color: #2e7d32;
  font-weight: 600;
  margin-top: 10px;
}

/* ============================= */
/* 📝 BESCHRIJVING */
/* ============================= */

.advertentie-beschrijving {
  grid-column: 1 / -1;
  margin-top: -5px;
  background: #fafafa;
  border-radius: 16px;
  padding: 24px;
}

.advertentie-beschrijving h2 {
  margin-top: 0;
  font-size: 22px;
}

.advertentie-beschrijving p {
  line-height: 1.7;
  color: #333;
}

/* ============================= */
/* 📱 RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
  .advertentie-wrapper {
    grid-template-columns: 1fr;
  }

  .verkoper-kaart {
    grid-column: 1;
  }

  .slider img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .prijs {
    font-size: 30px;
  }

  .koop-btn {
    font-size: 16px;
  }
}


.koop-btn:hover {
    background: #222;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}
.card-price {
  font-size: 1rem;
  font-weight: 800;
  color: #007bff;
  margin-bottom: 6px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-details {
  display: grid;
  grid-template-columns: 1fr 1fr; /* links | rechts */
  column-gap: 24px;
  row-gap: 8px;
  margin-top: 10px;
}

.left-details,
.right-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-line {
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #555;
}

@media (max-width: 600px) {
  .card-details {
    grid-template-columns: 1fr;
  }
}

/* FULLSCREEN LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* SLUIT KNOP */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 36px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* SLIDER KNOPPEN */
.lightbox-btn {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 28px;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);
  transition: all 0.25s ease;
}

.lightbox-btn.left { left: 30px; }
.lightbox-btn.right { right: 30px; }

.lightbox-btn:hover {
  background: rgba(0,0,0,0.9);
  transform: translateY(-50%) scale(1.1);
}

/* ============================= */
/* 🔝 TOP SEARCH BLOK - HUISSTIJL */
/* ============================= */
.top-search {
  max-width: 750px;
  margin: 20px auto 40px; /* top, auto center, bottom */
  padding: 20px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: center;
     margin-top: 50px;
}

.top-search select,
.top-search input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  min-width: 140px;
  flex: 1 1 140px; /* flexibel op kleinere schermen */
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search select:focus,
.top-search input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.top-search button {
  background: #007bff;
  color: #fff;
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 999px; /* pill shape */
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  flex: 0 0 auto; /* knop houdt zijn grootte */
}

.top-search button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Responsive - kleinere schermen */
@media (max-width: 900px) {
  .top-search {
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
  }

  .top-search select,
  .top-search input,
  .top-search button {
    flex: 1 1 100%;
  }
}

.filter-groep {
  margin-bottom: 20px;
}

.filter-groep h4 {
  margin-bottom: 10px;
}

.checkboxes {
  display: grid;
  grid-template-columns: 1fr auto auto; /* label | checkbox | count */
  row-gap: 8px;
  align-items: center;
}

.checkbox-row {
  display: contents;
}

.count {
  color: #888;
  font-size: 0.85rem;
  margin-left: 6px;
  min-width: 30px;
  text-align: right;
}

.checkbox-row span {
  text-align: left;
}

.checkbox-row input[type="checkbox"] {
  margin: 0;        /* geen extra marge */
  cursor: pointer;
}

/* PAGINA LAYOUT */
.onderdelen-pagina {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: "Inter", Arial, sans-serif;
}

.onderdelen-pagina h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #111;
}


/* ZOEKBALK BOVENAAN */
.onderdelen-zoek {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.onderdelen-zoek input,
.onderdelen-zoek select {
  flex: 1 1 180px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.onderdelen-zoek input:focus,
.onderdelen-zoek select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

/* ===== ONDERDELEN GRID ===== */
.onderdelen-lijst {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== ONDERDEEL CARD ===== */
.onderdeel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.onderdeel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ===== FOTO ===== */
.onderdeel-foto {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f2f2f2;
}

.onderdeel-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CONTENT ===== */
.onderdeel-content {
  padding: 14px;
}

.onderdeel-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.onderdeel-content p {
  margin: 4px 0;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .onderdelen-lijst {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .onderdelen-lijst {
    grid-template-columns: 1fr;
  }
}
.voertuig {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.voertuig:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

.voertuig-foto {
  width: 240px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden; /* Zorg dat img niet uitsteekt */
}

.voertuig-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.voertuig-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.voertuig-info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.voertuig-info .prijs {
  font-size: 1rem;
  font-weight: 700;
  color: #007bff;
  margin-top: 6px;
}

/* TURBO LABEL */
.voertuig.turbo::before {
  content: "Turbo Boost";
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff004c;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .onderdelen-zoek {
    flex-direction: column;
  }

  .voertuig {
    flex-direction: column;
  }

  .voertuig-foto img {
    width: 100%;
    height: 200px;
  }
}

.voertuig {
  position: relative; /* ⭐ NODIG */
}
/* Container rechtsboven */
.card-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

/* Datum badge */
.card-date {
  color: black;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}


/* Favoriet knop (hergebruikt jouw stijl) */
.card-top-right .favoriet-btn {
  position: static; /* belangrijk */
  width: 36px;
  height: 36px;
}