/* ── Ticket skeleton loader ──────────────────────── */
.ed-ticket-skeleton { padding: 16px; display: flex; flex-direction: column; gap: 0; }
.ed-skeleton-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}
.ed-skeleton-item:last-child { border-bottom: none; }
.ed-skeleton-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ed-skeleton-line {
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ed-shimmer 1.4s ease-in-out infinite;
}
.ed-skeleton-line.name  { height: 14px; width: 60%; }
.ed-skeleton-line.price { height: 12px; width: 35%; }
.ed-skeleton-qty {
  width: 96px; height: 36px; border-radius: 50px; flex-shrink: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ed-shimmer 1.4s ease-in-out infinite;
}
.ed-skeleton-footer {
  margin: 14px 16px 0;
  height: 44px; border-radius: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ed-shimmer 1.4s ease-in-out infinite;
}
@keyframes ed-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Reset number input ─────────────────────────── */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

/* ── Hero ────────────────────────────────────────── */
.ed-hero {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.ed-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.ed-hero:hover img {
  transform: scale(1.03);
}

.ed-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, transparent 50%);
  border-radius: 20px;
}

/* Social icons overlaid on hero bottom-right */
.ed-hero-social {
  position: absolute;
  bottom: 14px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.ed-hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background .2s;
}

.ed-hero-social a:hover {
  background: rgba(0, 0, 0, .65);
}

/* Badges overlaid on hero top-left */
.ed-hero-badges {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

@media (max-width: 767px) {
  .ed-hero {
    height: 180px;
    border-radius: 14px;
  }
}

/* ── Badges ──────────────────────────────────────── */
.ed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}

.ed-badge-online {
  background: #006d36;
  color: #fff;
}

.ed-badge-free {
  background: rgba(255, 255, 255, .9);
  color: #057a55;
}

/* ── Title ──────────────────────────────────────── */
.ed-title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* ── Info chips ──────────────────────────────────── */
.ed-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.ed-info-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 14px 20px;
  flex: 1 1 200px;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.ed-info-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}

.ed-info-chip .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.ed-info-chip:hover .icon-wrap {
  transform: scale(1.1);
}

.ed-info-chip .label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ed-info-chip .value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

/* Specific Chip Colors */
.icon-organizer {
  background: #f0fdf4 !important;
  color: #16a34a !important;
}

.icon-date-start {
  background: #eff6ff !important;
  color: #2563eb !important;
}

.icon-date-end {
  background: #f5f3ff !important;
  color: #7c3aed !important;
}

.icon-venue {
  background: #fff1f2 !important;
  color: #e11d48 !important;
}

/* ── Section headings ────────────────────────────── */
.ed-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a2e;
}

.ed-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ── Body text ───────────────────────────────────── */
.ed-body-text {
  font-size: .93rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 24px;
}

/* ── Location block ──────────────────────────────── */
.ed-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #f8f9fb;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.ed-location-bar .loc-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: #333;
}

#event-map {
  height: 380px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
  display: none;
}

#event-map.show {
  display: block;
}

@media (max-width: 575px) {
  #event-map {
    height: 250px;
  }
}

/* ── Policy cards ────────────────────────────────── */
.ed-policy-card {
  border-left: 3px solid #00c461;
  background: #f8f9fb;
  border-radius: 0 14px 14px 0;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.ed-policy-card h6 {
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 6px;
  color: #1a1a2e;
}

.ed-policy-card p {
  font-size: .88rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ── Gallery swiper ──────────────────────────────── */
.ed-gallery-wrap {
  margin-bottom: 40px;
}

.ed-gallery-wrap .swiper-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

@media (max-width: 575px) {
  .ed-gallery-wrap .swiper-slide img {
    height: 160px;
  }
}

/* ── More events cards ───────────────────────────── */
.ed-more-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  cursor: pointer;
}

/* Stretched link makes the whole card clickable */
.ed-more-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep the inner text links clickable above the overlay */
.ed-more-card-body h5 a,
.ed-more-card-body .read-link {
  position: relative;
  z-index: 2;
}

.ed-more-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
}

.ed-more-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ed-more-card-body {
  padding: 16px;
}

.ed-more-card-body .date-tag {
  font-size: .75rem;
  color: #555;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ed-more-card-body h5 {
  font-size: .98rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ed-more-card-body h5 a {
  color: #1a1a2e;
  text-decoration: none;
}

.ed-more-card-body h5 a:hover {
  color: #00a852;
}

.ed-more-card-body p {
  font-size: .83rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-more-card-body .read-link {
  font-size: .83rem;
  font-weight: 600;
  color: #00a852;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ed-more-card-body .read-link:hover {
  gap: 9px;
}

/* ── Ticket sidebar (desktop sticky) ─────────────── */
.ed-ticket-sidebar-col {
  align-self: flex-start;
  position: sticky;
  top: 90px;
  /* clears the 70px fixed navbar */
}

.ed-ticket-sidebar {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .12);
  overflow: hidden;
  margin-bottom: 30px;
}

/* Header: green gradient */
.ed-ticket-header {
  background: linear-gradient(135deg, #006d36 0%, #005229 100%);
  padding: 18px 22px 16px;
  color: #fff;
}

.ed-ticket-header h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: .2px;
}

/* Ticket list */
.ed-ticket-body {
  padding: 18px 22px 8px;
}

.ed-ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.ed-ticket-item:last-child {
  border-bottom: none;
}

.ed-ticket-item .t-name {
  font-size: .9rem;
  font-weight: 600;
  color: #1a1a2e;
}

.ed-ticket-item .t-price {
  font-size: .82rem;
  font-weight: 700;
  color: #00a852;
  margin-top: 2px;
}

/* Quantity controls */
.ed-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ed-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #006d36;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
  line-height: 1;
}

.ed-qty-btn:hover {
  background: #005229;
}

.ed-qty-input {
  width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 3px 0;
  background: #f8f9fb;
  -moz-appearance: textfield;
}

/* Footer button */
.ed-ticket-footer {
  padding: 14px 22px 22px;
}

.ed-ticket-footer .btn-primary {
  width: 100%;
  border-radius: 12px;
  padding: 13px;
  font-weight: 700;
  font-size: 1rem;
  background: #006d36 !important;
  border-color: #006d36 !important;
  color: #fff !important;
}

.ed-ticket-footer .btn-primary:hover {
  background: #005229 !important;
  border-color: #005229 !important;
}

.ed-ticket-empty {
  padding: 20px 22px;
  text-align: center;
  color: #555;
  font-size: .9rem;
}

/* ── Mobile bottom bar ───────────────────────────── */
.ed-mobile-ticket-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .12);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ed-mobile-ticket-bar .price-hint {
  font-size: .8rem;
  color: #555;
  font-weight: 500;
}

.ed-mobile-ticket-bar .price-val {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.ed-mobile-ticket-bar .btn-primary {
  flex-shrink: 0;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 700;
  background: #006d36 !important;
  border-color: #006d36 !important;
  color: #fff !important;
}

.ed-mobile-ticket-bar .btn-primary:hover {
  background: #005229 !important;
  border-color: #005229 !important;
}

/* ── Mobile drawer ───────────────────────────────── */
.ed-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
}

.ed-drawer-overlay.open {
  display: block;
}

.ed-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1070;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.ed-drawer.open {
  transform: translateY(0);
}

.ed-drawer-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 14px auto 0;
}

.ed-drawer-inner {
  padding: 16px 20px 24px;
}

.ed-drawer-inner .btn-primary {
  background: #006d36 !important;
  border-color: #006d36 !important;
  color: #fff !important;
}

.ed-drawer-inner .btn-primary:hover {
  background: #005229 !important;
  border-color: #005229 !important;
}

/* ── Responsive breakpoints ──────────────────────── */
@media (max-width: 991px) {
  .ed-ticket-sidebar-col {
    display: none;
  }

  .ed-mobile-ticket-bar {
    display: flex;
  }

  .ed-content-col {
    padding-bottom: 90px;
  }
}

@media (min-width: 992px) {
  .ed-mobile-ticket-bar {
    display: none !important;
  }

  .ed-drawer-overlay,
  .ed-drawer {
    display: none !important;
  }
}