/* Event cards shared by the homepage blocks and the agenda (hipp_event_card_html() in functions.php).
   Colours = src/tokens.css "Warme Herberg" palette. */

/* [hipp_events] — see hipp_events_shortcode() in functions.php */
.hipp-ev-grid, .hipp-ev-list, .hipp-ev-grid *, .hipp-ev-list * { box-sizing: border-box; }
.hipp-ev-grid a, .hipp-ev-list a { text-decoration: none !important; }
.hipp-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; line-height: 1;
}
.hipp-pill-red { background: #FDE7E8; color: #B70410; }
.hipp-pill-red::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hipp-events-empty { font-size: 13px; opacity: .7; padding: 12px 0; }

/* Hero sidebar: compact date rows (dark card) */
.hipp-ev-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #F5F1F2 !important;
}
.hipp-ev-row:first-child { padding-top: 0; }
.hipp-ev-row:last-child { border-bottom: 0; }
.hipp-ev-row .hipp-ev-date {
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  padding: 8px 0; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: rgba(255,255,255,.04);
}
.hipp-ev-row .hipp-ev-mon { font-size: 10px; letter-spacing: .12em; color: #C9C1C3; }
.hipp-ev-row .hipp-ev-day { font-size: 20px; font-weight: 600; margin-top: 4px; }
.hipp-ev-row .hipp-ev-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hipp-ev-row .hipp-ev-title { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.hipp-ev-row .hipp-ev-meta { font-size: 12px; color: #C9C1C3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hipp-ev-row:hover .hipp-ev-title { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Featured grid: prototype EventCard */
.hipp-ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 900px) { .hipp-ev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hipp-ev-grid { grid-template-columns: 1fr; } }
.hipp-ev-card {
  display: flex; flex-direction: column; overflow: hidden; color: #1D1C1C !important;
  background: #F6F0F2; border: 1px solid #D5CBCE; border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hipp-ev-card:hover { border-color: #B4AAAC; box-shadow: 0 10px 30px -14px rgba(29,28,28,.25); }
.hipp-ev-media {
  position: relative; display: block; aspect-ratio: 16/9;
}
.hipp-ev-media { overflow: hidden; }
.hipp-ev-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.hipp-ev-card:hover .hipp-ev-media-img { transform: scale(1.03); }
.hipp-ev-badge { position: absolute; left: 14px; top: 14px; }
.hipp-ev-dateblock {
  position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; align-items: center;
  background: #575756; border-radius: 6px; padding: 8px 10px; line-height: 1;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.4);
}
.hipp-ev-dateblock .hipp-ev-day { font-size: 22px; font-weight: 600; color: #F5F1F2; }
.hipp-ev-dateblock .hipp-ev-mon { font-size: 10px; letter-spacing: .12em; color: #C9C1C3; margin-top: 4px; }
.hipp-ev-media .hipp-stripe-label {
  position: absolute; left: 14px; bottom: 12px; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: #6E6667; padding: 4px 8px; border-radius: 3px;
}
.hipp-ev-content { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px 20px 22px; }
.hipp-ev-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #E30613; font-weight: 600; }
.hipp-ev-card .hipp-ev-title { font-size: 21px; font-weight: 500; line-height: 1.2; letter-spacing: -.005em; }
.hipp-ev-summary { font-size: 13.5px; line-height: 1.55; color: #3E3D3D; flex: 1; }
/* Cards in one row stay alike: the summary (the event's "Samenvatting", else the start of the
   description) shows at most two lines. */
.hipp-ev-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.hipp-ev-card .hipp-ev-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #575756; margin-top: auto; }
.hipp-ev-card .hipp-ev-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hipp-ev-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #E5DDDF; padding-top: 14px; margin-top: 4px;
}
.hipp-ev-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #E30613; }

.hipp-ev-card .hipp-ev-price { font-size: 15px; font-weight: 600; color: #1D1C1C; }

/* Agenda list row: date block | title + meta | price + button (prototype EventCard variant="row") */
.hipp-ev-rows { display: flex; flex-direction: column; gap: 12px; }
.hipp-ev-rows, .hipp-ev-rows * { box-sizing: border-box; }
.hipp-ev-listrow {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: center; padding: 18px;
  background: #F6F0F2; border: 1px solid #D5CBCE; border-radius: 8px; color: #1D1C1C !important; text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hipp-ev-listrow:hover { border-color: #B4AAAC; box-shadow: 0 10px 30px -14px rgba(29,28,28,.25); }
.hipp-ev-dateblock-lt {
  display: flex; flex-direction: column; align-items: center; padding: 10px 8px; line-height: 1;
  border: 1px solid #D5CBCE; border-radius: 6px; background: #EFE8EA;
}
.hipp-ev-dateblock-lt .hipp-ev-mon { font-size: 10px; letter-spacing: .12em; color: #575756; }
.hipp-ev-dateblock-lt .hipp-ev-day { font-size: 26px; font-weight: 600; margin-top: 5px; color: #1D1C1C; }
.hipp-ev-dateblock-lt .hipp-ev-year { font-size: 10px; color: #898182; margin-top: 4px; }
.hipp-ev-listrow .hipp-ev-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hipp-ev-listrow .hipp-ev-pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hipp-ev-eyebrow-sm { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #575756; font-weight: 600; }
.hipp-ev-listrow .hipp-ev-title { font-size: 20px; font-weight: 500; line-height: 1.2; }
.hipp-ev-listrow .hipp-ev-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; font-size: 12.5px; color: #575756; }
.hipp-ev-listrow .hipp-ev-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hipp-ev-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.hipp-ev-aside .hipp-ev-price { font-size: 16px; font-weight: 600; white-space: nowrap; }
.hipp-ev-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 4px;
  background: #E30613; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s;
}
.hipp-ev-listrow:hover .hipp-ev-btn { background: #B70410; }
@media (max-width: 640px) {
  .hipp-ev-listrow { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; }
  .hipp-ev-aside { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .hipp-ev-dateblock-lt .hipp-ev-day { font-size: 22px; }
}
