/* Overtollige homepagekaarten worden in JS volledig uit de kaartcontainer verwijderd. */
[data-tgl-al-home-hidden="true"] {
  display: none !important;
}

/* Alleen de dagkaarten worden groter; het omringende agendavak blijft automatisch op inhoudshoogte. */
.tgl-al-agenda-enhanced {
  position: relative;
}

.tgl-al-agenda-enhanced .tgl-al-agenda-strip {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 12px;
  scrollbar-gutter: auto !important;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.tgl-al-agenda-enhanced .tgl-al-agenda-day {
  box-sizing: border-box !important;
  flex: 0 0 var(--tgl-al-day-width, 250px) !important;
  width: var(--tgl-al-day-width, 250px) !important;
  min-width: var(--tgl-al-day-width, 250px) !important;
  min-height: var(--tgl-al-day-height, 250px) !important;
  height: var(--tgl-al-day-height, 250px) !important;
  max-height: var(--tgl-al-day-height, 250px) !important;
  scroll-snap-align: start;
}

.tgl-al-agenda-enhanced .tgl-al-agenda-day-events {
  max-height: calc(var(--tgl-al-day-height, 250px) - 72px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 3px;
}

.tgl-al-agenda-enhanced .tgl-al-agenda-day-events > * {
  min-height: 38px;
}

.tgl-al-agenda-enhanced .tgl-al-agenda-day-events a,
.tgl-al-agenda-enhanced .tgl-al-agenda-day-events button {
  line-height: 1.2;
}

/* Linked events on location pages. */
.tgl-al-linked-events-fallback {
  display: none;
}

.tgl-al-linked-events {
  margin: clamp(42px, 6vw, 84px) auto 20px;
  width: min(100%, 1440px);
  box-sizing: border-box;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  background: #0b353d;
  color: #fff;
  overflow: hidden;
}

.tgl-al-linked-events__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.tgl-al-linked-events__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #82e2e3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tgl-al-linked-events h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.04;
}

.tgl-al-linked-events__header p {
  margin: 10px 0 0;
  max-width: 720px;
  color: rgba(255,255,255,0.78);
}

.tgl-al-linked-events__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.tgl-al-linked-events__arrow {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.tgl-al-linked-events__arrow:hover,
.tgl-al-linked-events__arrow:focus-visible {
  background: #82e2e3;
  color: #092f37;
  outline: none;
}

.tgl-al-linked-events__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-color: rgba(130,226,227,0.78) rgba(255,255,255,0.12);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tgl-al-event-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: #0b3038;
  scroll-snap-align: start;
}

.tgl-al-event-card__image {
  position: relative;
  display: block;
  min-height: 188px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfeeee;
}

.tgl-al-event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.tgl-al-event-card:hover .tgl-al-event-card__image img {
  transform: scale(1.025);
}

.tgl-al-event-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #0b353d;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.tgl-al-event-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #0b3038;
  font-size: .78rem;
  font-weight: 800;
}

.tgl-al-event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.tgl-al-event-card__date {
  margin-bottom: 8px;
  color: #4d6d73;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tgl-al-event-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.14;
}

.tgl-al-event-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tgl-al-event-card p {
  margin: 0 0 20px;
  color: #51676d;
  font-size: .96rem;
  line-height: 1.55;
}

.tgl-al-event-card__link {
  margin-top: auto;
  color: #0b3038;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #82e2e3;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

@media (max-width: 700px) {
  .tgl-al-agenda-enhanced .tgl-al-agenda-day {
    flex-basis: var(--tgl-al-day-width-mobile, 220px) !important;
    width: var(--tgl-al-day-width-mobile, 220px) !important;
    min-width: var(--tgl-al-day-width-mobile, 220px) !important;
  }

  .tgl-al-linked-events {
    margin-left: 0;
    margin-right: 0;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .tgl-al-linked-events__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tgl-al-linked-events__controls {
    align-self: flex-end;
    margin-top: -8px;
  }

  .tgl-al-linked-events__track {
    grid-auto-columns: min(82vw, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgl-al-linked-events__track {
    scroll-behavior: auto;
  }
  .tgl-al-event-card__image img {
    transition: none;
  }
}
