/* ========== DESKTOP (default) ========== */

.event-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.event-body {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.event-thumb {
  flex-shrink: 0;
  position: relative;
}

.event-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.event-image.event-image--placeholder {
  background: #e9e9e9;
  width: 200px;
  height: 200px;
  border-radius: 8px;
}

/* Info kolom */
.event-info {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-headline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.event-dates {
  display: flex;
  gap: 0.4rem;
}

.date-box {
  background: #222;
  color: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  text-align: center;
  min-width: 48px;
}

.date-box .dow {
  font-size: 0.6rem;
  font-weight: bold;
  opacity: 0.9;
}

.date-box .day {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.date-box .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.85;
}

.event-title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.event-time {
  font-size: 0.9rem;
  color: #222;
  font-weight: 600;
}

.event-description {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.event-button {
  background-color: #480003;
  color: #fff;
  padding: 10px 20px;
  display: inline-block;
  border: none;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.event-button:hover {
  background-color: rgba(72, 0, 3, 0.75);
  color: #fff;
}
.mobile-overlay {
	display: none !important;
}
/* ========== MOBIEL (lichte overlay) ========== */
@media (max-width: 768px) {

  .event-card {
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    margin: 20px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  .event-body {
    flex-direction: column;
    gap: 0;
  }

  .event-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
  }

  .event-thumb img.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
  }

  /* Lichte overlay onderaan de afbeelding */
  .mobile-overlay {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.5);
    color: #222;
    padding: 12px;
  }

  .mobile-overlay-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-date {
    display: flex;
    gap: 6px;
  }

  .mobile-title {
    font-weight: 700;
    font-size: 1rem;
  }

  .mobile-time {
    font-weight: 600;
    font-size: 0.9rem;
    color: #222;
  }

  /* Verberg desktop headline */
  .event-headline {
    display: none;
  }

  /* Info onder afbeelding */
  .event-info {
    padding: 15px;
    background: #fff;
  }

  .event-description {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 6px;
  }

  .event-button {
    margin-top: 12px;
    width: 100%;
    text-align: center;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 6px;
  }

  .date-box {
    min-width: 50px;
    padding: 8px 6px;
    border-radius: 6px;
  }
}

/* ========== KLEINE MOBIEL TUNING ========== */
@media (max-width: 420px) {
  .mobile-overlay { padding: 8px 10px; }
  .mobile-title { font-size: 1.4rem; }
  .event-info { padding: 12px; }
}

@media (max-width: 768px){
  .event-card .event-thumb .mobile-overlay{display:block !important; background:rgba(255,255,255,.5) !important; color:#222 !important;}
  .event-headline{display:none !important;}
}

/* Mobile overlay: meerdere datum-pills */
@media (max-width: 768px){
  .mobile-overlay { display:block; position:absolute; left:0; right:0; bottom:0; background:rgba(255,255,255,.5); color:#222; padding:12px; }
  .mobile-overlay-content{ display:flex; flex-direction:column; gap:6px }
  .mobile-date{ display:flex; flex-wrap:wrap; gap:6px; align-items:center }

  /* compacte pill */
  .date-box--xs{
    min-width: 46px;
    padding: 6px 5px;
    border-radius: 6px;
    background:#222;
    color:#fff;
    text-align:center;
  }
  .date-box--xs .dow{ font-size:10px; line-height:1; font-weight:700; opacity:.95 }
  .date-box--xs .day{ font-size:14px; line-height:1; font-weight:700 }
  .date-box--xs .month{ font-size:10px; line-height:1; text-transform:uppercase; opacity:.9 }

  /* +N badge als er meer datums zijn */
  .date-more{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 8px;
    border-radius:6px;
    background:#eee;
    color:#222;
    font-size:12px;
    font-weight:700;
  }

  /* desktop header uit op mobiel (voorkomt dubbele titel/pills) */
  .event-headline{ display:none }
}