/* =========================================
   Top 10 waarderingen - top10-style.css
   Desktop: foto links + tekst rechts
   Mobiel: foto boven + tekst eronder (nooit in de foto)
   ========================================= */

.top10-plugin {
  max-width: 600px;
  margin-bottom: 30px;
}

/* -------------------------
   Stemmen / sterren
   ------------------------- */

.top10-stem-form {
  margin-top: 10px;
}

.top10-stem-btn {
  background-color: #99928e;
  border: 1px solid #ccc;
  color: #333;
  padding: 5px 10px;
  margin: 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.top10-stem-btn:hover {
  background-color: #e0e0e0;
}

.top10-sterren-container {
  position: relative;
  display: inline-block;
  font-size: 24px;
  color: #ddd;
}

.top10-sterren,
.top10-sterren-vol {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
}

.top10-sterren {
  color: #ddd;
  z-index: 1;
}

.top10-sterren-vol {
  color: #FFD700;
  overflow: hidden;
  z-index: 2;
}

/* -------------------------
   Zoekformulier
   ------------------------- */

.top10-zoekformulier {
  max-width: 800px;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.top10-form-group {
  margin-bottom: 15px;
}

.top10-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.top10-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23555' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 8px 10px;
}

.top10-select:disabled {
  background-color: #eee;
  cursor: not-allowed;
}

.top10-fieldset {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
}

.top10-legend {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  padding: 0 10px;
}

.top10-radio-label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

/* Button (form) */
.zoek-mijn-droneknop {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  width: 100%;
  max-width: 450px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.zoek-mijn-droneknop:hover {
  background-color: #005bb5;
  transform: scale(1.02);
}

/* (oude classes die je mogelijk nog gebruikt) */
.top10-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}
.top10-button {
  min-width: 140px;
}

/* Selects in plugin (algemeen) */
.top10-plugin select {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* -------------------------
   Resultaten (Top10)
   ------------------------- */

.top10-resultaten {
  counter-reset: resultaat-teller;
}

.top10-resultaten-lijst {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.top10-resultaat-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;

  padding-left: 44px;     /* ruimte voor nummer-bol */
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

/* Nummer-bol */
.resultaat-nummer {
  position: absolute;
  left: 0;
  top: 10px;              /* stabieler dan 50% */
  transform: none;

  background-color: #0073e6;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  font-size: 14px;
  z-index: 2;
}

/* Thumbnail: ondersteunt 2 varianten:
   A) <img class="top10-thumbnail" ...>
   B) <div class="top10-thumbnail"><img ...></div>
*/
img.top10-thumbnail {
  display: block;
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
}

.top10-thumbnail {
  width: 120px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  flex: 0 0 auto;
}

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

/* Geen foto placeholder */
.top10-geen-foto {
  width: 120px;
  height: 90px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  text-align: center;
  line-height: 90px;
  color: #888;
  border-radius: 4px;
  flex: 0 0 auto;
}

/* Tekstblok */
.top10-tekst {
  flex: 1 1 auto;
  min-width: 0;
  position: relative; /* belangrijk: nooit absolute overlays */
  z-index: 1;
}

.top10-tekst h4 {
  margin: 0 0 6px 0;
}

.top10-excerpt {
  font-size: 0.9em;
  color: #666;
  margin: 0 0 6px 0;
}

.top10-score {
  font-size: 0.9em;
  color: #555;
  margin: 0;
}

/* -------------------------
   Mobiel: foto boven, tekst eronder
   (hard reset om overlay-issues te voorkomen)
   ------------------------- */
@media (max-width: 768px) {

  .top10-resultaat-item {
    display: block;          /* geen flex op mobiel */
    padding-left: 0;
    margin-bottom: 22px;     /* ruimte tussen items */
    padding-bottom: 22px;
  }

  .top10-resultaat-item .resultaat-nummer {
    position: static !important;
    transform: none !important;
    display: inline-flex !important;
    margin: 0 0 10px 0 !important;
  }

  /* Foto altijd als blok, met ruimte eronder */
  img.top10-thumbnail,
  .top10-thumbnail,
  .top10-geen-foto {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 220px !important;

    margin: 0 0 12px 0 !important;
    border-radius: 6px !important;

    position: relative !important;
    z-index: 1 !important;
  }

  /* Als .top10-thumbnail een wrapper is, laat de img meeschalen */
  .top10-thumbnail img {
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    object-fit: cover !important;
  }

  /* Tekst altijd onder de foto en nooit in/over de foto */
  .top10-resultaat-item .top10-tekst {
    display: block !important;
    width: 100% !important;

    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;

    margin: 0 !important;
    z-index: 2 !important;
  }

  /* Reset voor tekst-elementen (soms zet thema/Divi dingen absoluut) */
  .top10-resultaat-item .top10-tekst h4,
  .top10-resultaat-item .top10-tekst a,
  .top10-resultaat-item .top10-tekst p,
  .top10-resultaat-item .top10-excerpt,
  .top10-resultaat-item .top10-score {
    position: relative !important;
    transform: none !important;
    display: block !important;
  }

  .top10-tekst h4,
  .top10-tekst a {
    font-size: 1.1em;
    margin-bottom: 5px;
  }
}

/* -------------------------
   Top15 mobiel (als je die gebruikt)
   ------------------------- */
@media (max-width: 768px) {

  .top15-resultaat-item {
    display: block;
    margin-bottom: 22px;
    padding-bottom: 22px;
  }

  .top15-thumbnail,
  .top15-geen-foto {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    margin: 0 0 12px 0;
    object-fit: cover;
  }

  .top15-tekst {
    display: block;
    width: 100%;
  }

  .top15-tekst h4,
  .top15-tekst a {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
  }
}

/* =========================
   Foto’s groter (goed op desktop én mobiel)
   - Desktop: vaste (iets hogere) hoogte
   - Mobiel: aspect-ratio zodat de foto niet plat wordt
   ========================= */

/* Desktop / tablet breed: iets hogere thumbnails */
@media (min-width: 769px) {

  /* Variant A: <img class="top10-thumbnail"> */
  .top10-resultaat-item img.top10-thumbnail {
    width: 120px !important;
    height: 110px !important;   /* was 90px */
    object-fit: cover !important;
  }

  /* Variant B: <div class="top10-thumbnail"><img ...></div> */
  .top10-resultaat-item .top10-thumbnail {
    width: 120px !important;
    height: 110px !important;   /* was 90px */
  }

  .top10-resultaat-item .top10-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Placeholder */
  .top10-resultaat-item .top10-geen-foto {
    width: 120px !important;
    height: 110px !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* =========================
   Desktop: thumbnails groter (breedte + hoogte)
   ========================= */
@media (min-width: 769px) {

  /* Variant A: <img class="top10-thumbnail"> */
  .top10-resultaat-item img.top10-thumbnail {
    width: 250px !important;   /* was 120px */
    height: 215px !important;  /* was 90px */
    object-fit: cover !important;
  }

  /* Variant B: <div class="top10-thumbnail"><img ...></div> */
  .top10-resultaat-item .top10-thumbnail {
    width: 250px !important;   /* was 120px */
    height: 215px !important;  /* was 90px */
  }

  .top10-resultaat-item .top10-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Placeholder (geen foto) dezelfde maat */
  .top10-resultaat-item .top10-geen-foto {
    width: 250px !important;
    height: 215px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important;
  }
}
