/* Wrapper: kaarten naast elkaar */
.rfit-card-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Kaartcontainer */

.rfit-card {
  background-color: #f6f6f6;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: calc(33.333% - 1rem);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
/* Afbeelding: witruimte + border-radius + lightbox */

/* White margin around the image */
.rfit-card-image-wrapper {
  width: 100%;
  padding: 16px 16px 0 16px;
  box-sizing: border-box;
  background: transparent;
}
/* Ensure the lightbox anchor and Divi image wrap respect our border radius */
.rfit-card-image-wrapper .et_pb_lightbox_image,
.rfit-card-image-wrapper .et_pb_image_wrap {
  display: block;
  border-radius: 12px !important;
  overflow: hidden;
}
/* The image itself: rounded corners */
.rfit-card-image-wrapper img,
.rfit-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px !important;
}

/* Body en titel */
.rfit-card-body {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rfit-card-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

}
.rfit-card-title {
  margin: 0;
  font-size: clamp(1.1rem, 1vw, 1.3125rem) !important;
}
.rfit-card-subtitle {
  margin: 0;
  font-size: clamp(0.96rem, 0.3vw, 1.05rem)!important;
}

/* Oranje lijn */
.rfit-card-divider {
  border: none;
  border-top: 2px solid #e08428;
  margin: 0.2rem 0 0.85rem;
  height: 0;
}

/* Info-rijen */
.rfit-card-info {
  font-size: 0.9rem;
}

.rfit-info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.35rem;
  min-height: 28px;
}
.rfit-info-label {
  font-weight: 700;
  margin-right: 0.5rem;
  min-width: 80px;
}
.rfit-info-value {
  flex: 1;
}

/* Genetica-tags + kleur per categorie */
.genetica-tags {
  display: inline-block;
}

.genetica-tags .filter-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: clamp(0.85rem, 0.25vw, 0.97rem);
    color: white;
    line-height: 1.6;
}

/* Recessief */
.genetica-recessief {
  background: #ef7d00;
}

/* Incompleet-dominant */
.genetica-incompleetdominant {
  background: #00983a;
}

/* Heterozygoot */
.genetica-heterozygoot {
  background: #747474;
}

/* Dominant */
.genetica-dominant {
  background: #7030a0;
}

/* Beschikbaarheidsiconen */
.rfit-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 1.6rem;
  font-size: 20px;
}
/* Symbol icons for male/female markers. */
.rfit-icon .symbol {
    margin-right: 0.7rem;
    font-size: 0; /* Prevent the default text size from affecting the layout */
    line-height: 0;
}
.rfit-icon.male .symbol {
  color: #4aaefe;
}
.rfit-icon.female .symbol {
  color: #ff8096;
}

/* Size the FontAwesome icons for the gender symbols. */
.rfit-icon .symbol i {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}
/* Status icons (checkmark/cross) next to gender symbols. */
.rfit-icon .status {
    font-size: 20px;
    line-height: 1;
    color: #28a745;
    font-weight: 700;
}
.rfit-icon.not-available .status {
  color: #dc3545;
}

/* Knop onderaan */
.rfit-card-footer {
  margin-top: 0.75rem;
}
.rfit-button {
  display: inline-block;
  background-color: #ef7d00;
  color: #ffffff;
  padding: 4.8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
  text-align: center;
}
.rfit-button:hover {
  background-color: #474747;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 980px) {
  .rfit-card {
    width: calc(50% - 1rem);
  }
}
@media (max-width: 640px) {
  .rfit-card {
    width: 100%;
  }
}
