/* ============================= */
/* Algemeen / Reset */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
}

/* ============================= */
/* Header */
/* ============================= */

header {
  background: #ffffff;
  padding: 7px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center; /* nav in het midden */
  position: relative;
  gap: 50px; /* ruimte tussen logo, nav en knop */
}

/* Logo links */
.logo {
  margin-right: auto; /* duwt logo links */
}

.logo img {
  height: 50px;
}

/* Navigatie gecentreerd */
nav {
  display: flex;
  gap: 15px; /* ruimte tussen links */
}

/* Nav links styling */
nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #000000;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

nav a:hover {
  background: rgba(0, 87, 179, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #0057b3;
}

/* Plaats advertentie knop rechts */
.header-button {
  margin-left: auto; /* duwt knop naar rechts */
}

.plaats-btn {
  background: #007bff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.plaats-btn .icoon {
  width: 16px;
  height: auto;
  vertical-align: middle;
}

.plaats-btn:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Vind knop */
.vindbtn {
  background: #007bff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.vindbtn .icoon {
  width: 16px;
  height: auto;
  vertical-align: middle;
}

.vindbtnbtn:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ============================= */
/* Responsive header */
/* ============================= */

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }

  .header-button {
    margin-left: 0;
    width: 100%;
  }
}

/* ============================= */
/* Hero / Banner */
/* ============================= */

.hero {
  background: url("images/banner.jpg") no-repeat center center / cover;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  color: #000000;
}

.hero-content {
  background: rgba(0, 0, 0, 0);
  display: inline-block;
  padding: 20px 40px;
  border-radius: 12px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #007bff;
}

.hero p {
  font-size: 1.2rem;
  color: #007bff;
}

#plaatsButton {
  background: #007bff;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin-top: 30px;
}

#plaatsButton:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ============================= */
/* Sectie stijl */
/* ============================= */

.section {
  padding: 50px 20px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 30px;
}

/* ============================= */
/* Blog sectie */
/* ============================= */

/* ============================= */
/* Community sectie (zelfde stijl) */
/* ============================= */

.community-section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.community-header {
  text-align: center;
  margin-bottom: 40px;
}

.community-header h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
}

.community-header p {
  color: #555;
  margin-bottom: 25px;
}

.community-btn {
  display: inline-block;
  padding: 12px 26px;
  background: #007bff;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.community-btn:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Cards exact zoals voertuigen */
.community-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.community-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.community-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.community-card-content {
  padding: 16px;
}

.community-card-content h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #000;
}

.community-card-content p {
  font-size: 0.9rem;
  color: #555;
}

.community-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #777;
}


/* ============================= */
/* Layout: banners + formulier */
/* ============================= */

.page-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
  gap: 20px;
}

.banner {
  width: 160px;
  height: 600px;
  background: #e0e0e0;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.form-wrapper {
  flex: 1;
  max-width: 600px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Formulier velden */
.form-wrapper label {
  margin-top: 15px;
  font-weight: bold;
}

.form-wrapper input,
.form-wrapper textarea,
.form-wrapper select,
.form-wrapper button {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
  font-weight: bold;
}

.form-wrapper button {
  margin-top: 5px;
  background: #007bff;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.form-wrapper button:hover {
  background: #0056b3;
}

.hidden {
  display: none;
}

/* ============================= */
/* Dropdown */
/* ============================= */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  color: #000;
  padding: 0;
  margin: 0;
  text-decoration: none;
  font-weight: normal;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

/* Desktop hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobiel/touch via JS */
.dropdown-content.show {
  display: block;
}

/* ============================= */
/* Boost tekst popup */
/* ============================= */

.boost-text {
  color: black;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  margin-bottom: -20px;
  margin-top: 15px;
  padding: 6px 2px;
  z-index: 10;
  text-align: left;
}

.boost-text:hover {
  color: #555;
}

/* Overlay (scherm donker) */
#boostPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#boostPopup.hidden {
  display: none;
}

/* Popup content */
.boost-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.25s ease-in-out;
}

#boostPopup.show .boost-popup-content {
  transform: scale(1);
  opacity: 1;
}

/* Sluitkruis */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* ============================= */
/* Bundles */
/* ============================= */

.bundles {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.bundle {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
}

.bundle h4 {
  margin-bottom: 5px;
}

.select-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.select-btn:hover {
  background-color: #007bff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0 auto;
  align-items: stretch;
  max-width: 1400px;
}

.cards > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.cards > div:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.cards img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cards h3 {
  font-size: 1rem;
  margin: 10px 15px 5px;
}

.cards p {
  font-size: 0.9rem;
  margin: 0 15px 15px;
  color: #555;
}

.card.fade-out {
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity .4s, transform .4s;
}

.card.fade-in {
  opacity: 0;
  transform: translateX(25px);
  animation: fadeIn .4s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card-info {
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #fff;
  border-radius: 8px;
}
.card-title {
  font-size: 1rem;       /* iets kleiner */
  font-weight: 600;      /* minder dik */
  color: #111;
}

.card-price {
  font-size: 1rem;       /* iets kleiner */
  font-weight: 600;      /* minder dik */
  color: #111;
}

.card-details {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.card-details p {
  margin: 2px 0;
  font-size: 0.825rem;   /* iets kleiner en subtieler */
  color: #555;
}

.left-details, .right-details {
  display: flex;
  flex-direction: column;
  gap: 2px;              /* kleine ruimte tussen regels */
}

/* Turbo label blijft opvallend */
.geboost-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff004c;
  color: white;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 5px;
  z-index: 10;
  text-transform: uppercase;
}
/* Zorg dat de prijs subtiel opvalt zonder te overheersen */
.card-price::before {
  content: "";
  font-weight: 500;
  margin-right: 2px;
}

.icon-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #555;
}

.icon-line img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.75;
}

.icon-line span {
  line-height: 1.2;
}

/* ============================= */
/* Responsive cards */
/* ============================= */

@media (max-width: 1200px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* Footer (zelfde stijl als site) */
/* ============================= */

.site-footer {
  background: #ffffff;
  margin-top: 80px;
  border-top: 1px solid #e5e5e5;
}

.footer-container {
  max-width: 1400px;
  margin: auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column h3 {
  color: #000;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-column p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.25s ease;
}

.footer-column a:hover {
  color: #007bff;
  transform: translateX(3px);
}

.footer-socials a {
  display: inline-block;
  margin-right: 12px;
  color: #000;
  font-size: 0.9rem;
  font-weight: bold;
}

.footer-socials a:hover {
  color: #007bff;
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  text-align: center;
  padding: 18px;
  font-size: 0.8rem;
  color: #666;
}

/* =========================
   UPLOAD BOX
========================= */
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 160px;

  border: 2px dashed #0a7cff;
  border-radius: 14px;

  cursor: pointer;
  text-align: center;
  padding: 22px;
  margin: 12px 0;

  background: linear-gradient(180deg, #f9fbff, #f1f6ff);
  transition: 
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.15s ease;
}

.upload-box:hover {
  background: #eef5ff;
  border-color: #065ec2;
  transform: scale(1.01);
}

.upload-box.dragover {
  background: #e8f1ff;
  border-color: #003f9e;
  box-shadow: 0 0 0 4px rgba(10,124,255,0.15);
}

/* =========================
   UPLOAD TEXT
========================= */
.upload-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.upload-text {
  font-weight: 600;
  font-size: 1rem;
  color: #0a7cff;
}

.upload-subtext {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

/* =========================
   PREVIEW CONTAINER
========================= */
.preview-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 naast elkaar */
  gap: 12px;
  margin-top: 12px;
}

/* =========================
   PREVIEW ITEM
========================= */
.preview-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* altijd vierkant */
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}

.preview-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* vult vak zonder vervormen */
  display: block;
}

/* =========================
   DELETE BUTTON
========================= */
.preview-item button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 16px;
  line-height: 26px;
}

.preview-item button:hover {
  background: red;
}


/* =========================
   MOBILE FIX
========================= */
@media (max-width: 600px) {
  .preview-item img {
    height: 90px;
  }
}

.dashboard-mijn-ads {
  max-width: 1100px;
  margin: 40px auto;
}
/* Container van ALLE advertenties */
#mijn-advertenties {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 🔥 2 advertenties per rij */
  gap: 20px;
  align-items: stretch;
}

.mijn-ad-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.mijn-ad-card img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}
.mijn-ad-info h3 {
  font-size: 0.95rem;
}
.mijn-ad-info .prijs {
  font-weight: 700;
  font-size: 0.9rem;
}
.mijn-ad-info .meta {
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}
/* =============================
   DASHBOARD ACTIE KNOPPEN
============================= */
.mijn-ad-acties {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* ALTIJD 2 per rij */
  gap: 8px;
  margin-top: 10px;
  justify-items: center; /* knoppen mooi in het midden */
}

/* Basis voor alle knoppen */
.mijn-ad-acties button {
  width: 100%;               /* vult grid‑cel */
  appearance: none;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;   /* TEKST + ICOON IN HET MIDDEN */
  gap: 6px;
  transition: 
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.mijn-ad-acties .btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* 👁 Bekijken */
.mijn-ad-acties .bekijk-btn {
  background: #000;
  color: #fff;
}
.mijn-ad-acties .bekijk-btn:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* ✏️ Bewerken */
.mijn-ad-acties .bewerk-btn {
  background: #007bff;
  color: #fff;
}
.mijn-ad-acties .bewerk-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,123,255,0.35);
}

/* ✅ Verkocht */
.mijn-ad-acties .verkocht-btn {
  background: #16a34a;        /* strak groen */
  color: #fff;
}

.mijn-ad-acties .verkocht-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22,163,74,0.35);
}

/* 🗑 Verwijderen */
.mijn-ad-acties .verwijder-btn {
  background: #ff3b3b;
  color: #fff;
}
.mijn-ad-acties .verwijder-btn:hover {
  background: #d60000;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255,59,59,0.4);
}

/* 📱 Mobile: onder elkaar */
@media (max-width: 600px) {
  .mijn-ad-acties {
    flex-direction: column;
  }
}

.meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: #555;
  margin-top: 6px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-item img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.mijn-ad-meta .icon-boost {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  filter: grayscale(100%);
}

/* Dashboard welcome container */
.dashboard-welcome {
  max-width: 1100px;
  margin: 40px auto 30px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tekst links */
.dashboard-welcome h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.dashboard-welcome p {
  font-size: 0.9rem;
  color: #666;
}

/* Logout knop – strak rood */
.logout-btn {
  background: #ff3b3b;
  color: #fff;
  padding: 9px 18px;
  border-radius: 10px;           /* geen pill, maar strak */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.logout-btn:hover {
  background: #e60000;
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 700px) {
  .dashboard-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .logout-btn {
    align-self: flex-end;
  }
}
/* =============================
   DASHBOARD – FAVORIETEN (ECHTE HUISTIJL)
============================= */

.dashboard-favorieten {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 10px;
}

.dashboard-favorieten h3{
  font-size: 0.95rem;
  margin-bottom: 22px;
  color: #000;
}

/* =============================
   DASHBOARD – FAVORIETEN (VERBETERD)
============================= */

#favorieten-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 18px;
}

/* Card */
.favoriet-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.favoriet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
}

/* Foto */
.favoriet-card img {
  width: 130px;
  height: 95px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Content */
.favoriet-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Titel */
.favoriet-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.3;
}

/* Prijs */
.favoriet-info .prijs {
  font-size: 0.9rem;
  font-weight: 800;
  color: #007bff;
  margin-bottom: auto;
}

/* Favorieten – bekijk knop (zelfde stijl als bewerk-btn) */
.favoriet-info .bekijk-btn {
  background: #007bff;
  color: #fff;
  border: none;

  padding: 6px 14px;        /* 🔹 kleiner */
  font-size: 0.75rem;       /* 🔹 iets subtieler */
  font-weight: 600;         /* 🔹 niet dikgedrukt */
  border-radius: 999px;

  width: auto;              /* 🔥 NIET full width */
  align-self: flex-start;   /* links zoals bewerk-btn */

  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* Hover exact zoals bewerk-btn */
.favoriet-info .bekijk-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,123,255,0.35);
}

/* Active (klik) */
.favoriet-info .bekijk-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,123,255,0.25);
}

/* Mobile */
@media (max-width: 600px) {
  .favoriet-card img {
    height: 160px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .favoriet-card {
    flex-direction: column;
  }

  .favoriet-card img {
    width: 100%;
    height: 160px;
  }
}

/* =============================
   BEWERK ADVERTENTIE PAGINA
============================= */

.bewerk-container {
  max-width: 700px;
  margin: 50px auto;
  padding: 26px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bewerk-container h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 22px;
  color: #000;
}

/* Form layout */
#bewerkForm {
  display: grid;
  gap: 14px;
}

/* Labels */
#bewerkForm label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
}

/* Inputs & selects */
#bewerkForm input,
#bewerkForm select,
#bewerkForm textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#bewerkForm textarea {
  resize: vertical;
  min-height: 120px;
}

/* Focus state */
#bewerkForm input:focus,
#bewerkForm select:focus,
#bewerkForm textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

/* Opslaan knop */
#bewerkForm button {
  margin-top: 10px;
  background: #007bff;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(0,123,255,0.35);
}

#bewerkForm button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,123,255,0.45);
}

/* Status tekst */
#status {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
  .bewerk-container {
    margin: 30px 12px;
    padding: 20px;
  }
}

/* =============================
   UNREAD BADGE
============================= */
.nav-chat {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Badge zelf */
.unread-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;

  background: #007bff;          /* huisstijl blauw */
  color: #fff;

  font-size: 0.7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;

  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,123,255,0.35);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  animation: badgePop 0.25s ease;
}

/* Animatie subtiel */
@keyframes badgePop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Geen badge als 0 */
.unread-badge:empty {
  display: none;
}

.dashboard-badge {
  background: #ff3b3b; /* zelfde rood als logout */
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255,59,59,0.35);
}

/* =============================
   CHAT POPUP – RIJMARKT STIJL
============================= */

/* Popup container */
.chat-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  height: 460px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

.chat-popup:not(.hidden) {
  animation: chatFadeIn 0.25s ease;
}

/* Animatie bij openen */
@keyframes chatFadeIn {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chat-popup.hidden {
  display: none;
}

.chat-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-popup-header img.chat-icon {
  width: 28px;          /* gewenste grootte */
  height: 28px;         /* gewenste hoogte */
  object-fit: contain;  /* vervormt niet */
  display: inline-block;
  margin-right: 8px;    /* ruimte tussen icoon en andere elementen */
}

.chat-popup-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.chat-popup-header span {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Header buttons */
.chat-popup-actions {
  display: flex;
  gap: 6px;
}

.chat-popup-actions button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.15s ease;
}

.chat-popup-actions button:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.05);
}

/* =============================
   BODY / CHAT LIST
============================= */
.chat-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #f8f9fb;
}

/* Scrollbar subtiel */
.chat-popup-body::-webkit-scrollbar {
  width: 6px;
}
.chat-popup-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

/* =============================
   CHAT ITEM
============================= */
.chat-popup-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  align-items: center;
}

.chat-popup-item:hover {
  background: #eef4ff;
  transform: translateY(-2px);
}

/* Profielfoto */
.chat-popup-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ddd;
}

/* Tekst */
.chat-popup-item strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: #000;
}

.chat-popup-item small {
  font-size: 0.78rem;
  color: #555;
}

/* =============================
   GEEN CHATS TEKST
============================= */
#chatPopupList p {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 20px;
}

/* =============================
   CHAT BUBBLE
============================= */
.chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,123,255,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-bubble:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 35px rgba(0,123,255,0.6);
}

.chat-bubble-icon {
  width: 32px;   /* grootte van je bubble afbeelding */
  height: 32px;
  object-fit: contain;
}
.chat-bubble {
  /* font-size: 24px; */ /* niet meer nodig */
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,123,255,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* =============================
   RESPONSIVE
============================= */
@media (max-width: 480px) {
  .chat-popup {
    width: calc(100% - 20px);
    height: 70vh;
    right: 10px;
    bottom: 10px;
  }
}

.chat-popup-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-popup-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-time {
  font-size: 0.7rem;
  color: #666;
}

.chat-popup-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-popup-bottom small {
  font-size: 0.75rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* 🔵 ONGELEZEN BOLLETJE */
.chat-unread-dot {
  width: 10px;
  height: 10px;
  background: #0d6efd;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(13,110,253,.2);
  flex-shrink: 0;
}

/* =============================
   DASHBOARD – BERICHTEN CARD
============================= */
.dashboard-berichten {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 10px;
}

.berichten-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform .25s ease, box-shadow .25s ease;
}

.berichten-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

/* Linkerkant */
.berichten-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.berichten-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,123,255,0.4);
}

.berichten-text h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.berichten-text p {
  font-size: 0.85rem;
  color: #666;
}

/* Badge rechts */
.berichten-card .unread-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: #ff3b3b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,59,59,0.4);
}
