.event-detail-page {
  background: var(--cream);
}

.event-detail-main {
  overflow: clip;
}

.event-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 63.6%) minmax(360px, 36.4%);
  min-height: 855px;
  background: rgba(249, 240, 223, .66);
}

.event-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 342px) 275px;
  grid-template-areas:
    "copy meta"
    "features features";
  align-content: start;
  column-gap: 56px;
  row-gap: 34px;
  min-width: 0;
  padding: 64px 67px 96px calc(var(--sidebar-width) + 35px);
}

.event-copy {
  grid-area: copy;
  min-width: 0;
  padding-right: 12px;
}

.event-kicker {
  margin: 0;
  color: var(--coral);
  font-family: var(--heading-font);
  font-size: clamp(2.35rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: .96;
}

.event-copy h1 {
  max-width: 320px;
  margin: 4px 0 13px;
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.08;
  text-transform: uppercase;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  margin: 0 0 27px;
  padding: 0;
  list-style: none;
}

.event-tags li {
  min-height: 23px;
  padding: 4px 7px 3px;
  border: 1px solid var(--coral);
  color: var(--charcoal);
  font-size: 10px;
  line-height: 1.25;
  text-transform: lowercase;
}

.event-description p {
  margin: 0 0 15px;
  color: var(--charcoal);
  font-size: 10px;
  line-height: 1.27;
}

.event-description h2 {
  margin: 18px 0 13px;
  color: var(--coral);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.event-meta-column {
  grid-area: meta;
  min-width: 0;
}

.event-page-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 8px;
}

.event-page-nav__arrows {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.event-page-nav a {
  display: grid;
  place-items: center;
  height: 38px;
  border: 1px solid var(--coral);
  color: var(--coral);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.event-page-nav a[aria-disabled="true"] {
  pointer-events: none;
  opacity: .35;
}

.event-page-nav__square {
  width: 38px;
  flex: 0 0 38px;
}

.event-page-nav a:hover,
.event-page-nav a:focus-visible {
  color: var(--cream);
  background: var(--coral);
}

.event-page-nav .event-page-nav__back {
  width: auto;
  min-width: 86px;
  padding: 0 14px;
  margin-left: auto;
  font-size: 12px;
  text-transform: uppercase;
}

.event-info-card {
  position: relative;
  z-index: 1;
  min-height: 342px;
  padding: 17px 20px 20px;
  color: var(--cream);
  background: var(--coral);
}

.event-info-card h2 {
  margin: 0 0 17px;
  color: var(--sand);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.event-info-card dl,
.event-info-card dd {
  margin: 0;
}

.event-info-card dl {
  display: grid;
  gap: 13px;
}

.event-info-card dt {
  margin: 0 0 2px;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: 8px;
  line-height: 1.1;
  text-transform: uppercase;
}

.event-info-card dd,
.event-info-card a {
  color: var(--cream);
  font-size: 8px;
  line-height: 1.22;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.event-features {
  grid-area: features;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-self: end;
  margin-bottom: 36px;
}

.event-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  height: 182px;
  padding: 18px 11px 9px;
  border: 1px solid var(--coral);
  color: var(--coral);
  text-align: right;
}

.event-feature-card .feature-icon {
  position: absolute;
  top: 9px;
  right: 8px;
  display: block;
  width: 22px;
  height: 22px;
  background: var(--coral);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.event-feature-card .feature-icon--walk {
  -webkit-mask-image: url('../icons/person-walking.svg');
  mask-image: url('../icons/person-walking.svg');
}

.event-feature-card .feature-icon--shuttle {
  -webkit-mask-image: url('../icons/van-shuttle.svg');
  mask-image: url('../icons/van-shuttle.svg');
}

.event-feature-card .feature-icon--food {
  -webkit-mask-image: url('../icons/utensils.svg');
  mask-image: url('../icons/utensils.svg');
}

.event-feature-card .feature-icon--children {
  -webkit-mask-image: url('../icons/children.svg');
  mask-image: url('../icons/children.svg');
}

.event-feature-card h2 {
  margin: 0;
  color: var(--coral);
  font-size: 16px;
  line-height: 1.01;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.event-photo-panel {
  position: relative;
  min-width: 0;
  min-height: 855px;
  overflow: hidden;
  background: #d6d8da;
}

.event-photo-slides,
.event-photo-slide,
.event-photo-slide img {
  width: 100%;
  height: 100%;
}

.event-photo-slides {
  position: absolute;
  inset: 0;
}

.event-photo-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 400ms ease;
}

.event-photo-slide.is-active {
  opacity: 1;
}

.event-photo-slide img {
  object-fit: cover;
  object-position: center;
}

.event-partner-logo {
  position: absolute;
  z-index: 6;
  top: 35px;
  right: 38px;
  width: 102px;
  height: 102px;
  object-fit: contain;
  background: var(--white);
}

.event-gallery-controls {
  position: absolute;
  z-index: 7;
  right: 24px;
  bottom: 128px;
  display: flex;
  align-items: flex-end;
  gap: 27px;
}

.event-gallery-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
}

.event-gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 2px solid var(--cream);
  background: var(--cream);
}

.event-gallery-dots button.is-active {
  width: 12px;
  height: 12px;
}

.event-gallery-arrows {
  display: grid;
  grid-template-columns: repeat(2, 38px);
  gap: 10px;
}

.event-gallery-arrows button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid var(--cream);
  color: var(--cream);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.event-gallery-arrows button:hover,
.event-gallery-arrows button:focus-visible {
  color: var(--coral);
  background: var(--cream);
}

.event-footer-zigzag {
  position: relative;
  z-index: 10;
  height: 72px;
  margin-top: -71px;
  margin-bottom: -2px;
  background-color: #fcf7ed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='42' viewBox='0 0 84 42' preserveAspectRatio='none'%3E%3Cpath fill='%23f0654f' d='M0 42h84V21L63 0 42 21 21 0 0 21z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 168px 72px;
  clip-path: none;
}

.event-detail-footer {
  position: relative;
  z-index: 9;
  min-height: 250px;
  padding-top: 54px;
}

@media (min-width: 1281px) {
  .event-detail-content {
    padding-right: clamp(67px, 5.2vw, 92px);
  }
}

@media (max-width: 1100px) {
  .event-detail-hero {
    grid-template-columns: minmax(0, 64%) minmax(330px, 36%);
  }

  .event-detail-content {
    grid-template-columns: minmax(0, 1fr) 261px;
    column-gap: 40px;
    padding: 56px 42px 65px calc(var(--sidebar-width) + 27px);
  }

  .event-page-nav {
    gap: 7px;
  }

  .event-page-nav__arrows {
    gap: 7px;
  }

  .event-page-nav a,
  .event-page-nav__square {
    height: 34px;
  }

  .event-page-nav__square {
    width: 34px;
    flex-basis: 34px;
  }

  .event-feature-card h2 {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .event-detail-main {
    padding-top: 70px;
  }

  .event-detail-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .event-photo-panel {
    order: -1;
    min-height: 68vw;
    max-height: 660px;
  }

  .event-gallery-controls {
    bottom: 28px;
  }

  .event-detail-content {
    grid-template-columns: minmax(0, 1.45fr) minmax(190px, .75fr);
    padding: 64px 32px 80px;
  }

  .event-footer-zigzag {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .event-detail-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "meta"
      "features";
    gap: 38px;
    padding: 48px 20px 68px;
  }

  .event-kicker {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .event-copy h1 {
    max-width: 100%;
    font-size: 18px;
  }

  .event-description p,
  .event-description h2 {
    font-size: 12px;
  }

  .event-page-nav {
    margin: 0 0 14px;
  }

  .event-page-nav a,
  .event-page-nav__square {
    height: 42px;
  }

  .event-page-nav__square {
    width: 42px;
    flex-basis: 42px;
  }

  .event-info-card {
    min-height: 0;
    padding: 24px;
  }

  .event-info-card h2 {
    font-size: 13px;
  }

  .event-info-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }

  .event-info-card dt,
  .event-info-card dd,
  .event-info-card a {
    font-size: 10px;
  }

  .event-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .event-feature-card {
    height: 180px;
  }

  .event-photo-panel {
    min-height: 82vw;
  }

  .event-partner-logo {
    top: 18px;
    right: 18px;
    width: 84px;
    height: 84px;
  }

  .event-gallery-controls {
    right: 16px;
    bottom: 16px;
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .event-info-card dl {
    grid-template-columns: 1fr;
  }

  .event-feature-card h2 {
    font-size: 13px;
  }
}

/* Fijnregeling op basis van het 1280 px Figma-frame. */
@media (min-width: 901px) {
  .event-detail-content {
    row-gap: 14px;
  }

  .event-copy {
    padding-top: 0;
  }

  .event-kicker {
    font-size: 31px;
  }

  .event-info-card {
    min-height: 298px;
  }

  .event-info-card dl {
    gap: 10px;
  }
}

.event-detail-footer {
  padding: 54px 56px 60px;
}

.event-detail-footer .footer-inner {
  max-width: none;
  margin: 0;
  gap: 91px;
}

.event-detail-footer .initia-brand {
  width: 88px;
  height: 88px;
}

.event-detail-footer .footer-contact h2 {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .event-copy {
    padding-top: 0;
  }

  .event-detail-footer {
    padding: 56px 30px 64px;
  }

  .event-detail-footer .footer-inner {
    gap: 70px;
  }
}

@media (max-width: 620px) {
  .event-footer-zigzag {
    height: 42px;
    margin-top: 0;
    background-size: 84px 42px;
  }

  .event-detail-footer {
    padding: 56px 28px 64px;
  }

  .event-detail-footer .footer-inner {
    flex-direction: column;
    gap: 26px;
  }
}

/* Leesbaarheid eventdetail. Breedtes blijven gelijk; de sectie groeit alleen wanneer tekst dat vraagt. */
.event-tags li {
  min-height: 27px;
  padding: 5px 8px 4px;
  font-size: 12px;
  line-height: 1.3;
}

.event-description p {
  margin-bottom: 17px;
  font-size: 14px;
  line-height: 1.5;
}

.event-description h2 {
  margin-top: 21px;
  font-size: 12px;
  line-height: 1.3;
}

.event-info-card h2 {
  font-size: 12px;
  line-height: 1.3;
}

.event-info-card dt {
  font-size: 10px;
  line-height: 1.2;
}

.event-info-card dd,
.event-info-card a {
  font-size: 11px;
  line-height: 1.35;
}

@media (min-width: 901px) {
  .event-detail-content {
    grid-template-columns: minmax(0, 1fr) 292px;
    column-gap: 48px;
    row-gap: 24px;
  }

  .event-copy {
    padding-top: 0;
    padding-right: 16px;
  }

  .event-info-card {
    min-height: 380px;
    padding: 20px 24px;
  }

  .event-info-card dl {
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .event-description p {
    font-size: 15px;
    line-height: 1.55;
  }

  .event-description h2 {
    font-size: 13px;
  }

  .event-tags li {
    font-size: 12px;
  }

  .event-info-card h2 {
    font-size: 14px;
  }

  .event-info-card dt {
    font-size: 11px;
  }

  .event-info-card dd,
  .event-info-card a {
    font-size: 13px;
    line-height: 1.45;
  }
}
