/* Algemene reset en fonts */
.divi-exposanten-merken-wrapper,
.divi-exposanten-merken-wrapper * {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #2e2e2e;
}

/* Exposant Detail pagina */
.exposant-detail-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 15px;
}

.exposant-detail-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: left;
}

/* Twee kolommen: logo en gegevens */
.exposant-detail-main {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.exposant-logo-wrapper {
    flex: 1 1 45%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exposant-logo-wrapper img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* Gegevens blok */
.exposant-info-wrapper {
    flex: 1 1 45%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 1rem;
    line-height: 1.2;
    color: #444;
}

.exposant-info-standnummer {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #7a2c91;
}

/* Adres regels strak onder elkaar zonder marge */
.exposant-info-address p {
    margin: 0;
    padding: 0;
}

/* Link website */
.exposant-info-website a {
    color: #7a2c91;
    text-decoration: none;
    word-break: break-word;
}

.exposant-info-website a:hover {
    text-decoration: underline;
}

/* Merken sectie */
.exposant-brands-wrapper {
    margin-top: 20px;
}

.exposant-brands-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #7a2c91;
    text-align: left;
}

/* Merken grid */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 15px;
    flex: 1 1 calc(33.333% - 13.33px); /* 3 per rij met gap */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
}

/* Merk logo */
.brand-logo {
    height: 80px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.brand-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Merk naam */
.brand-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Lees meer link */
.brand-toggle {
    color: #7a2c91;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    margin-bottom: 10px;
    display: inline-block;
}

.brand-toggle:hover {
    text-decoration: underline;
}

/* Merk omschrijving (standaard verborgen) */
.brand-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    font-size: 0.9rem;
    color: #555;
}

/* Open class voor merk omschrijving */
.brand-description.open {
    max-height: 300px; /* ruim genoeg voor tekst */
    opacity: 1;
}

/* Responsive aanpassingen */
@media (max-width: 900px) {
    .brand-card {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .exposant-detail-main {
        flex-direction: column;
    }
    .exposant-logo-wrapper,
    .exposant-info-wrapper {
        flex: 1 1 100%;
    }
    .brand-card {
        flex: 1 1 100%;
    }
}

/* Container grid */
.merken-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

/* Merk kaart */
.merken-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 20px;
  margin: 10px;
  flex: 1 0 calc(25% - 20px); /* Pas aan als je aantal kolommen verandert */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.merken-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Logo container */
.merk-logo {
  height: 120px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merk-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Merknamen */
.merken-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #2e2e2e;
}

/* Omschrijving (standaard verborgen) */
.brand-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.3;
  margin-top: 5px;
  display: none;
}

/* Lees meer link */
.toggle-description {
  color: #7a2c91;
  font-weight: bold;
  cursor: pointer;
  margin-top: 5px;
  display: inline-block;
  user-select: none;
  text-decoration: underline;
}

/* Stand en exposant info */
.merken-card p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
  line-height: 1.3;
}

/* Link in exposant */
.merken-card p a {
  color: #7a2c91;
  text-decoration: none;
}

.merken-card p a:hover {
  text-decoration: underline;
}

/* Responsief: minder kolommen op kleinere schermen */
@media (max-width: 1024px) {
  .merken-card {
    flex: 1 0 calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .merken-card {
    flex: 1 0 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .merken-card {
    flex: 1 0 100%;
  }
}

