/* ==========================================================================
   Event details modal (video, flyer, full information)
   Structural layout lives here because the compiled main.css only contains the utility classes
   that existed at build time. Loaded by includes/header.php on every public page.
   ========================================================================== */

#event-details-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
#event-details-modal.hidden { display: none; }
#event-details-modal .hidden { display: none !important; }

#event-details-modal .modal-dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: auto;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(120, 113, 108, 0.45);
  background: #0d0709;
  color: #fff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}

#event-details-modal .evd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-height: inherit;
}
#event-details-modal .evd-media {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}
#event-details-modal .evd-media video,
#event-details-modal .evd-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  background: #000;
}
#event-details-modal .evd-media #event-details-card-img { object-fit: cover; max-height: none; }
#event-details-modal .evd-body {
  padding: 20px;
  min-width: 0;
  overflow-y: auto;
  max-height: calc(100dvh - 24px);
}
#event-details-modal .evd-tabs { display: flex; border-bottom: 1px solid #292524; }
#event-details-modal .evd-tabs button {
  flex: 1;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
#event-details-modal .evd-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #e7e5e4;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
#event-details-modal .evd-close:hover { background: rgba(0, 0, 0, 0.85); color: #fff; }
#event-details-modal .evd-cta { display: flex; flex-direction: column; gap: 12px; }
#event-details-modal .evd-cta > * { flex: 1; }

@media (min-width: 768px) {
  #event-details-modal { padding: 16px; }
  #event-details-modal .evd-grid { grid-template-columns: 340px minmax(0, 1fr); }
  #event-details-modal .evd-media video,
  #event-details-modal .evd-media img { max-height: calc(100dvh - 90px); }
  #event-details-modal .evd-body { padding: 28px; }
  #event-details-modal .evd-cta { flex-direction: row; }
}

/* Buttons and spacing (kept here: the compiled utility CSS has no matching colour classes) */
#event-details-modal dl { row-gap: 16px; column-gap: 24px; }
#event-details-modal #event-details-reserve {
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: #611227;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(97, 18, 39, 0.45);
  transition: background 0.2s ease, transform 0.15s ease;
}
#event-details-modal #event-details-reserve:hover { background: #7d1731; }
#event-details-modal #event-details-reserve:active { transform: scale(0.98); }
#event-details-modal #event-details-call {
  padding: 14px 18px;
  border: 1px solid #78716c;
  border-radius: 12px;
  color: #f5f5f4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}
#event-details-modal #event-details-call:hover { border-color: #b89668; color: #b89668; }
#event-details-modal button:focus-visible,
#event-details-modal a:focus-visible { outline: 2px solid #b89668; outline-offset: 2px; }
