/* Event Detail Page Styles */

:root {
  --brand: #1e8756;
  --brand-dark: #14532d;
  --brand-light: #e8f5ee;
  --gold: #d4a841;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --radius: 14px;
}

/* ── layout ── */
.ed-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ── hero image block ── */
.ed-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  background: #111;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* carousel */
.ed-carousel .carousel-item img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.ed-carousel .carousel-control-prev,
.ed-carousel .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}
.ed-hero:hover .carousel-control-prev,
.ed-hero:hover .carousel-control-next { opacity: 1; }
.ed-carousel .carousel-control-prev { left: 14px; }
.ed-carousel .carousel-control-next { right: 14px; }
.ed-carousel .carousel-control-prev-icon,
.ed-carousel .carousel-control-next-icon { width: 18px; height: 18px; }

.ed-carousel .carousel-indicators { margin-bottom: 14px; }
.ed-carousel .carousel-indicators button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.5);
  transition: all .25s;
  padding: 0;
}
.ed-carousel .carousel-indicators button.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* image counter badge */
.ed-img-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
}
.ed-img-count svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* single image (no carousel) */
.ed-single-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* caption strip */
.ed-caption-strip {
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  padding: 10px 18px;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
}

/* thumbnail strip */
.ed-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f9fafb;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.ed-thumbs::-webkit-scrollbar { display: none; }
.ed-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 52px;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color .2s, transform .2s;
}
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-thumb.active { border-color: var(--brand); transform: scale(1.05); }
.ed-thumb:hover { border-color: rgba(30,135,86,.5); }

/* ── body grid ── */
.ed-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ── main column ── */
.ed-title-block { margin-bottom: 22px; }
.ed-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.ed-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.ed-divider {
  height: 3px;
  width: 48px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border-radius: 2px;
  margin: 16px 0 22px;
}

.ed-desc-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 12px;
}
.ed-desc {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ── sidebar ── */
.ed-info-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ed-info-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  padding: 16px 20px;
}
.ed-info-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}
.ed-info-body { padding: 0; }
.ed-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.ed-info-row:last-child { border-bottom: 0; }
.ed-info-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ed-info-icon svg {
  width: 18px; height: 18px;
  stroke: var(--brand); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ed-info-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-bottom: 3px;
}
.ed-info-value {
  font-size: 15px; font-weight: 600;
  color: var(--text); line-height: 1.4;
}
.ed-info-value.brand { color: var(--brand); }

/* share */
.ed-share {
  margin-top: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.ed-share-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-bottom: 12px;
}
.ed-share-btns { display: flex; gap: 10px; }
.ed-share-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
  transition: opacity .2s, transform .15s;
}
.ed-share-btn:hover { opacity: .88; transform: translateY(-1px); }
.ed-share-btn svg { width: 15px; height: 15px; }
.ed-share-copy { background: var(--brand-light); color: var(--brand); }
.ed-share-copy svg { stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── responsive ── */
@media (max-width: 860px) {
  .ed-body { grid-template-columns: 1fr; }
  .ed-sidebar { order: -1; }
}
@media (max-width: 540px) {
  .ed-carousel .carousel-item img,
  .ed-single-img { max-height: 260px; }
  .ed-title { font-size: 22px; }
}
