/* event.css — single event detail page. */

.wg-event-banner {
  border-radius: var(--wg-radius);
  overflow: hidden;
  margin-bottom: var(--wg-space);
  background: #f4f4f4;
}
.wg-event-banner img {
  display: block;
  width: 100%;
  max-height: 420px;
  /* contain (not cover) so tall/portrait banners show in full on wide desktop
     screens instead of being cropped — matching how they already look on mobile.
     The letterbox fills with the container's neutral background. */
  object-fit: contain;
  object-position: center;
}

.wg-event-title { margin: 0 0 10px; }
.wg-event-when { font-weight: 600; margin-bottom: 10px; }
.wg-event-cat-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 10px;
  border-radius: 999px; background: var(--wg-tint, #f4fbf7); color: var(--wg-color-dark, #0b8f3e);
  font-size: 0.8rem; font-weight: 600; vertical-align: 1px;
}
.wg-event-cat-chip .wg-evcat-ico { width: 13px; height: 13px; }

.wg-event-loc {
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  padding: 12px;
  margin-bottom: var(--wg-space);
}
.wg-event-loc-name { font-weight: 600; }
.wg-event-loc-addr { color: var(--wg-muted); margin-top: 2px; }
.wg-event-loc-link { display: inline-block; margin-top: 6px; }
.wg-event-map {
  width: 100%;
  max-width: 480px;   /* keep the map compact — it shouldn't dominate the page */
  height: 180px;
  border-radius: var(--wg-radius);
  margin-top: 12px;
  border: 1px solid var(--wg-border);
}

.wg-event-body {
  white-space: normal;
  line-height: 1.55;
  margin-bottom: var(--wg-space);
}
.wg-event-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: var(--wg-space);
}
@media (min-width: 480px) {
  .wg-event-gallery { grid-template-columns: 1fr 1fr; }
}
.wg-event-gthumb {
  display: block;
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  overflow: hidden;
  background: #f4f4f4;
}
.wg-event-gthumb img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;   /* flyers must stay fully readable, not cropped */
}

.wg-event-comm { color: var(--wg-muted); margin-bottom: var(--wg-space); }

.wg-event-host {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--wg-border);
  border-bottom: 1px solid var(--wg-border);
  margin-bottom: var(--wg-space);
}
.wg-event-host .wg-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.wg-event-host-label { display: block; font-size: 0.8rem; color: var(--wg-muted); }

/* .wg-event-disclaimer is global (main.css) — shared with the event form. */

.wg-event-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
/* .wg-btn defaults to width:100% (main.css) — inline pills here so Share /
   Add to calendar / Report share one line. */
.wg-event-actions .wg-btn {
  width: auto; flex: 0 1 auto; padding: 8px 13px; font-size: 0.82rem;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.wg-event-actions .wg-ico { width: 16px; height: 16px; }

/* RSVP block — now a summary + a prominent button (form lives in a modal) */
.wg-rsvp {
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  padding: 14px;
  margin-bottom: var(--wg-space);
  background: var(--wg-tint, #f4fbf7);
}
.wg-rsvp-title { font-size: 1.05rem; margin: 0 0 6px; }
.wg-rsvp-count { font-weight: 600; color: var(--wg-color-dark); margin-bottom: 10px; }
.wg-rsvp-openbtn { width: auto; min-width: 200px; padding: 12px 28px; }
.wg-rsvp-mine { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.wg-rsvp-mine p { margin: 0 0 8px; font-weight: 600; }
.wg-rsvp-modal-count { margin-bottom: 12px; }
.wg-rsvp-form .wg-field { margin-bottom: 10px; }
.wg-rsvp-form .wg-field > label:not(.wg-check) {
  display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 4px;
}
.wg-rsvp-form input[type="text"],
.wg-rsvp-form input[type="email"],
.wg-rsvp-form input[type="number"] {
  width: 100%; padding: 11px 12px; font-size: 1rem;
  border: 1px solid var(--wg-border); border-radius: var(--wg-radius);
}
.wg-rsvp-status { display: flex; gap: 16px; }
.wg-rsvp-status .wg-check { display: inline-flex; align-items: center; gap: 5px; }
.wg-rsvp-consent {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.85rem; color: var(--wg-muted); margin-bottom: 10px;
}
.wg-rsvp-consent input { margin-top: 3px; accent-color: var(--wg-color); }

/* ── Paid events ────────────────────────────────────────────────── */
.wg-rsvp-price { margin: 6px 0 2px; font-size: .95rem; }
.wg-rsvp-total { margin: 4px 0; font-weight: 700; color: #0a7d37; }
.wg-rsvp-pay { margin-top: 14px; border: 1px solid #d6ede0; background: #f6faf7; border-radius: 12px; padding: 12px 14px; }
.wg-rsvp-pay-title { margin: 0 0 8px; font-size: 1rem; }
.wg-rsvp-pay-due { margin: 0 0 8px; }
.wg-rsvp-pay-info { white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px solid #e4e4e4; border-radius: 8px; padding: 10px 12px; font-size: .92rem; }
.wg-rsvp-pay-note { margin: 10px 0 0; font-size: .82rem; color: #6b5500; background: #fff8e6; border: 1px solid #f2e2b3; border-radius: 8px; padding: 8px 10px; }
.wg-rsvp-consent { font-size: .85rem; }

/* Structured payment details */
.wg-payf-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #e4e4e4; }
.wg-payf-row:last-child { border-bottom: 0; }
.wg-payf-lbl { color: #555; }
.wg-payf-val { font-weight: 700; word-break: break-all; text-align: right; }
.wg-opt { color: #999; font-weight: 400; font-size: .85em; }
