/* ============================================
   Events by devsEye — Public Styles v1.1
   Dark theme for echovalleyhq.com
   ============================================ */

/* ---- Root variables ---- */
:root {
  --ebd-bg:             #000000;
  --ebd-card-bg:        #111111;
  --ebd-card-bg-hover:  #1a1a1a;
  --ebd-border:         #2a2a2a;
  --ebd-border-light:   #333333;
  --ebd-text:           #ffffff;
  --ebd-text-muted:     #999999;
  --ebd-text-sub:       #cccccc;
  --ebd-accent:         #c0392b;
  --ebd-accent-hover:   #e74c3c;
  --ebd-title-font:     'Impact', 'Arial Black', 'Franklin Gothic Medium', sans-serif;
  --ebd-body-font:      'Arial', 'Helvetica Neue', sans-serif;
}

/* ---- Wrap ---- */
.ebd-events-wrap {
  font-family: var(--ebd-body-font);
  background: var(--ebd-bg);
  padding: 40px 30px;
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
  color: var(--ebd-text);
}

/* ---- Header ---- */
.ebd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.ebd-title {
  font-family: var(--ebd-title-font);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ebd-text);
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  line-height: 1;
}

/* ---- View toggle buttons ---- */
.ebd-view-toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ebd-view-btn {
  background: transparent;
  border: 1.5px solid #555;
  color: #ccc;
  font-family: var(--ebd-body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 50px;
}

.ebd-view-btn:hover {
  background: #333;
  color: #fff;
  border-color: #777;
}

.ebd-view-btn.active {
  background: #3d1a18;
  color: #fff;
  border-color: var(--ebd-accent);
}

/* ---- Divider ---- */
.ebd-divider {
  height: 1px;
  background: var(--ebd-border);
  margin-bottom: 22px;
}

/* ---- Filters row ---- */
.ebd-filters-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

/* Category tabs — pill style */
.ebd-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ebd-cat-tab {
  background: transparent;
  border: 1.5px solid #444;
  color: #aaa;
  font-family: var(--ebd-body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.15s;
  white-space: nowrap;
}

.ebd-cat-tab:hover {
  color: #fff;
  border-color: #777;
  background: #222;
}

.ebd-cat-tab.active {
  background: var(--ebd-accent);
  color: #fff;
  border-color: var(--ebd-accent);
}

/* Date filter */
.ebd-date-filter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ebd-date-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ebd-text-muted);
}

.ebd-date-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ebd-month-select {
  appearance: none;
  -webkit-appearance: none;
  background: #111;
  border: 1.5px solid #444;
  color: #fff;
  font-family: var(--ebd-body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 44px 10px 16px;
  cursor: pointer;
  border-radius: 4px;
  min-width: 160px;
}

.ebd-month-select:focus {
  outline: none;
  border-color: var(--ebd-accent);
}

.ebd-month-select option {
  background: #1a1a1a;
  color: #fff;
}

.ebd-chevron {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #aaa;
}

/* ---- Grid view ---- */
.ebd-events-container.ebd-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ---- List view ---- */
.ebd-events-container.ebd-view-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================
   GRID CARD
   ============================================ */
.ebd-grid-card {
  background: var(--ebd-card-bg);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ebd-border);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.ebd-grid-card:hover {
  box-shadow: 0 8px 30px rgba(192, 57, 43, 0.15);
  transform: translateY(-3px);
  border-color: #3a3a3a;
}

.ebd-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1a1a;
}

.ebd-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.ebd-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.ebd-grid-card:hover .ebd-card-image img {
  transform: scale(1.05);
}

.ebd-card-no-image {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ebd-card-no-image svg {
  width: 48px;
  height: 48px;
  color: #444;
}

.ebd-card-body {
  padding: 16px 16px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ebd-card-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--ebd-accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ebd-card-title {
  font-family: var(--ebd-title-font);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ebd-text-muted);
  margin: 0 0 8px;
  line-height: 1.2;
}

.ebd-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.ebd-card-title a:hover {
  color: var(--ebd-accent);
}

.ebd-card-performers {
  font-size: 13px;
  color: var(--ebd-text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

.ebd-card-location {
  font-size: 12px;
  color: var(--ebd-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.ebd-card-location svg {
  flex-shrink: 0;
}

.ebd-card-footer {
  margin-top: auto;
  padding: 14px 0 16px;
}

/* ============================================
   VIEW DETAILS BUTTON
   ============================================ */
.ebd-btn-view-details {
  display: inline-block;
  border: 1px solid #444;
  background: transparent;
  color: #aaa;
  font-family: var(--ebd-body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 4px;
}

.ebd-btn-view-details:hover {
  background: var(--ebd-accent);
  color: #fff;
  border-color: var(--ebd-accent);
  text-decoration: none;
}

/* Full-width button for grid cards */
.ebd-grid-card .ebd-card-footer .ebd-btn-view-details {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* ============================================
   LIST ITEM
   ============================================ */
.ebd-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ebd-border);
  background: transparent;
  transition: background 0.15s;
}

.ebd-list-item:last-child {
  border-bottom: none;
}

.ebd-list-item:hover {
  background: rgba(255,255,255,0.02);
}

.ebd-list-image {
  flex: 0 0 160px;
  width: 160px;
  height: 110px;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1a1a;
}

.ebd-list-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.ebd-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.ebd-list-item:hover .ebd-list-image img {
  transform: scale(1.04);
}

.ebd-list-body {
  flex: 1;
  min-width: 0;
}

.ebd-list-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--ebd-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ebd-list-title {
  font-family: var(--ebd-title-font);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ebd-text-muted);
  margin: 0 0 5px;
  line-height: 1.1;
}

.ebd-list-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.ebd-list-title a:hover {
  color: var(--ebd-accent);
}

.ebd-list-performers {
  font-size: 13px;
  color: var(--ebd-text-muted);
  line-height: 1.5;
}

.ebd-list-location {
  font-size: 12px;
  color: var(--ebd-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.ebd-list-action {
  flex: 0 0 auto;
  padding-left: 10px;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.ebd-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 6px;
}

.ebd-status-cancelled  { background: rgba(192,57,43,0.2); color: #e74c3c; border: 1px solid rgba(192,57,43,0.4); }
.ebd-status-postponed  { background: rgba(243,156,18,0.15); color: #f39c12; border: 1px solid rgba(243,156,18,0.3); }
.ebd-status-sold_out   { background: rgba(155,89,182,0.15); color: #9b59b6; border: 1px solid rgba(155,89,182,0.3); }

/* image overlay badge */
.ebd-card-image .ebd-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  z-index: 2;
}

/* ============================================
   CALENDAR
   ============================================ */
.ebd-calendar-inner {
  background: var(--ebd-card-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ebd-border);
}

.ebd-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ebd-border);
}

.ebd-calendar-month-title {
  font-family: var(--ebd-title-font);
  font-size: 28px;
  font-weight: 900;
  color: var(--ebd-text);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ebd-cal-nav-btns {
  display: flex;
  gap: 8px;
}

.ebd-cal-prev,
.ebd-cal-next {
  background: transparent;
  border: 1.5px solid #444;
  color: #aaa;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: all 0.15s;
}

.ebd-cal-prev:hover,
.ebd-cal-next:hover {
  background: var(--ebd-accent);
  border-color: var(--ebd-accent);
  color: #fff;
}

/* Calendar grid */
.ebd-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.ebd-cal-day-name {
  background: #0a0a0a;
  color: var(--ebd-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
  border-right: 1px solid var(--ebd-border);
  border-bottom: 1px solid var(--ebd-border);
}

.ebd-cal-day-name:last-child {
  border-right: none;
}

.ebd-cal-cell {
  min-height: 110px;
  border-right: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 8px 10px;
  vertical-align: top;
  position: relative;
}

.ebd-cal-cell:nth-child(7n + 9) {
  border-right: none;
}

.ebd-cal-empty {
  background: #080808;
}

.ebd-cal-day-num {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 6px;
}

.ebd-cal-today .ebd-cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ebd-accent);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  margin-bottom: 6px;
}

.ebd-cal-has-events {
  background: #0d0d0d;
}

.ebd-cal-has-events .ebd-cal-day-num {
  color: #ddd;
}

.ebd-cal-events-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ebd-cal-event-dot {
  display: block;
  background: var(--ebd-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.15s;
}

.ebd-cal-event-dot:hover {
  background: var(--ebd-accent-hover);
  color: #fff;
  text-decoration: none;
}

/* ---- No events ---- */
.ebd-no-events {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #555;
  font-size: 15px;
}

/* ---- Utility ---- */
.ebd-hidden {
  display: none !important;
}

/* ---- Loading ---- */
.ebd-loading {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 6px;
}

.ebd-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #333;
  border-top-color: var(--ebd-accent);
  border-radius: 50%;
  animation: ebd-spin 0.7s linear infinite;
}

@keyframes ebd-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SINGLE EVENT PAGE
   ============================================ */
.ebd-single-event {
  background: var(--ebd-bg);
  color: var(--ebd-text);
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 30px;
  font-family: var(--ebd-body-font);
  box-sizing: border-box;
}

.ebd-single-category-badge {
  display: inline-block;
  background: #1a1a1a;
  color: #aaa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  border: 1px solid #333;
}

.ebd-single-title {
  font-family: var(--ebd-title-font);
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ebd-text);
  margin: 0 0 20px;
  line-height: 1;
  letter-spacing: 1px;
}

/* Date/time row */
.ebd-single-meta-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--ebd-border);
  border-bottom: 1px solid var(--ebd-border);
}

.ebd-single-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ebd-single-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555;
}

.ebd-single-meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--ebd-text);
}

/* Featured image */
.ebd-single-image {
  width: 100%;
  margin-bottom: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}

.ebd-single-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Info box */
.ebd-single-info-box {
  background: var(--ebd-card-bg);
  border: 1px solid var(--ebd-border);
  border-radius: 6px;
  padding: 28px 30px;
  margin-bottom: 28px;
}

.ebd-single-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ebd-single-info-title {
  font-family: var(--ebd-title-font);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ebd-text);
  margin: 0;
}

.ebd-single-add-cal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ebd-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.ebd-single-add-cal:hover {
  color: var(--ebd-accent);
  text-decoration: none;
}

.ebd-single-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 30px;
  margin-bottom: 20px;
}

.ebd-single-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ebd-single-detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555;
}

.ebd-single-detail-value {
  font-size: 14px;
  color: var(--ebd-text-sub);
}

.ebd-single-detail-value a {
  color: var(--ebd-accent);
  text-decoration: none;
}

.ebd-single-detail-value a:hover {
  color: var(--ebd-accent-hover);
}

.ebd-single-divider {
  height: 1px;
  background: var(--ebd-border);
  margin: 20px 0;
}

/* Social share */
.ebd-single-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ebd-single-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
}

.ebd-single-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #aaa;
  text-decoration: none;
  transition: all 0.15s;
  font-size: 13px;
}

.ebd-single-share a:hover {
  background: var(--ebd-accent);
  border-color: var(--ebd-accent);
  color: #fff;
}

/* Description/content */
.ebd-single-content {
  color: var(--ebd-text-sub);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.ebd-single-content h2,
.ebd-single-content h3 {
  color: var(--ebd-text);
}

/* CTA Button */
.ebd-single-cta {
  display: inline-block;
  background: var(--ebd-accent);
  color: #fff;
  font-family: var(--ebd-body-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ebd-single-cta:hover {
  background: var(--ebd-accent-hover);
  color: #fff;
  text-decoration: none;
}

/* Back link */
.ebd-single-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.ebd-single-back:hover {
  color: var(--ebd-accent);
  text-decoration: none;
}

/* ============================================
   MOBILE — ≤768px
   Show: categories → date select → list only
   Hide: GRID VIEW / CALENDAR buttons
   ============================================ */
@media (max-width: 768px) {

  .ebd-events-wrap {
    padding: 20px 14px;
  }

  /* Hide grid/calendar toggle on mobile — show only list view */
  .ebd-view-btn[data-view="grid"],
  .ebd-view-btn[data-view="calendar"] {
    display: none;
  }

  /* Hide the whole toggle row if only list button remains (optional cosmetic) */
  .ebd-view-toggles {
    display: none;
  }

  /* Header: title only on mobile */
  .ebd-header {
    margin-bottom: 12px;
  }

  /* Filters: stack vertically — categories first, then dates */
  .ebd-filters-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  /* Category tabs wrap and scroll */
  .ebd-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .ebd-cat-tab {
    font-size: 11px;
    padding: 7px 14px;
  }

  /* Date filter full-width */
  .ebd-date-filter {
    align-items: flex-start;
    width: 100%;
  }

  .ebd-date-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .ebd-date-select-wrap {
    width: 100%;
  }

  .ebd-month-select {
    width: 100%;
    box-sizing: border-box;
  }

  /* Force list view container on mobile */
  .ebd-events-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Override grid display for mobile */
  .ebd-events-container.ebd-view-grid {
    grid-template-columns: unset;
  }

  /* On mobile, grid cards become list-style */
  .ebd-grid-card {
    flex-direction: row !important;
    border-radius: 4px;
    overflow: visible;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid var(--ebd-border);
    background: transparent;
    box-shadow: none;
    padding: 16px 0;
  }

  .ebd-grid-card:hover {
    transform: none;
    box-shadow: none;
  }

  .ebd-grid-card .ebd-card-image {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    aspect-ratio: unset;
    border-radius: 4px;
    overflow: hidden;
  }

  .ebd-grid-card .ebd-card-body {
    padding: 0 0 0 14px;
    flex: 1;
  }

  .ebd-grid-card .ebd-card-date {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .ebd-grid-card .ebd-card-title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .ebd-grid-card .ebd-card-performers {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .ebd-grid-card .ebd-card-location {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .ebd-grid-card .ebd-card-footer {
    padding: 6px 0 0;
  }

  .ebd-grid-card .ebd-card-footer .ebd-btn-view-details {
    width: auto;
    font-size: 10px;
    padding: 7px 14px;
    letter-spacing: 1px;
  }

  /* List items on mobile */
  .ebd-list-item {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 16px 0;
    align-items: flex-start;
  }

  .ebd-list-image {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
  }

  .ebd-list-body {
    flex: 1;
    min-width: 0;
  }

  .ebd-list-date {
    font-size: 10px;
  }

  .ebd-list-title {
    font-size: 15px;
  }

  .ebd-list-performers {
    font-size: 12px;
  }

  .ebd-list-action {
    display: none; /* action button integrated below title on mobile */
  }

  /* Show view-details inline after performers on mobile */
  .ebd-list-item .ebd-list-body .ebd-btn-view-details {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    padding: 7px 14px;
    letter-spacing: 1px;
  }

  /* Single event */
  .ebd-single-event {
    padding: 20px 14px;
  }

  .ebd-single-details-grid {
    grid-template-columns: 1fr;
  }

  .ebd-single-meta-row {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .ebd-title {
    font-size: 26px;
  }
}

/* ---- Mobile inline button — hide on desktop ---- */
.ebd-list-btn-mobile {
  display: none;
}

@media (max-width: 768px) {
  /* Show inline button in list body */
  .ebd-list-btn-mobile {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    padding: 7px 14px;
    letter-spacing: 1px;
  }
  /* Hide the desktop right-side action */
  .ebd-list-action {
    display: none;
  }
}

/* ============================================
   SINGLE PAGE v1.2 — Updated layout
   ============================================ */

/* Top row: back + category badges inline */
.ebd-single-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Back link — matches "< ALL EVENTS" style */
.ebd-single-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #bbb;
  text-decoration: none;
  transition: color 0.15s;
}

.ebd-single-back:hover {
  color: var(--ebd-accent);
  text-decoration: none;
}

/* Category badge — pill style dark box */
.ebd-single-category-badge {
  display: inline-block;
  background: #1a1a1a;
  color: #ccc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid #333;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.ebd-single-category-badge:hover {
  border-color: var(--ebd-accent);
  color: var(--ebd-accent);
  text-decoration: none;
}

/* Title — large impact font */
.ebd-single-title {
  font-family: var(--ebd-title-font);
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ebd-text);
  margin: 0 0 20px;
  line-height: 1;
  letter-spacing: 1px;
}

/* Meta row: DATE | START TIME | END TIME | Location */
.ebd-single-meta-row {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding: 14px 0;
}

.ebd-single-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ebd-single-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
}

.ebd-single-meta-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ebd-text);
}

/* Location in meta row — accent red, no label, vertically centered at bottom */
.ebd-single-meta-location {
  margin-left: auto; /* push to right */
}

.ebd-single-location-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--ebd-accent);
  text-decoration: none;
  transition: color 0.15s;
}

a.ebd-single-location-link:hover {
  color: var(--ebd-accent-hover);
}

/* Divider line below meta row */
.ebd-single-divider-line {
  height: 1px;
  background: var(--ebd-border);
  margin: 0 0 24px;
}

/* Featured image */
.ebd-single-image {
  width: 100%;
  margin-bottom: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}

.ebd-single-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* Content above info box */
.ebd-single-content {
  color: var(--ebd-text-sub);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.ebd-single-content h2,
.ebd-single-content h3 {
  color: var(--ebd-text);
}

/* Info box */
.ebd-single-info-box {
  background: #111;
  border: 1px solid var(--ebd-border);
  border-radius: 6px;
  padding: 28px 30px;
  margin-bottom: 28px;
}

/* Info header: EVENT INFORMATION + ADD TO CALENDAR */
.ebd-single-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.ebd-single-info-title {
  font-family: var(--ebd-title-font);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ebd-text);
  margin: 0;
}

.ebd-single-add-cal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ebd-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.ebd-single-add-cal:hover {
  color: var(--ebd-accent);
  text-decoration: none;
}

/* Description inside info box */
.ebd-single-info-desc {
  color: var(--ebd-text-sub);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ebd-single-info-desc p {
  margin: 0 0 10px;
  color: inherit;
}

/* Divider inside info box */
.ebd-single-divider {
  height: 1px;
  background: var(--ebd-border);
  margin: 20px 0;
}

/* Share row */
.ebd-single-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ebd-single-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
}

.ebd-single-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #aaa;
  text-decoration: none;
  transition: all 0.15s;
}

.ebd-single-share a:hover {
  background: var(--ebd-accent);
  border-color: var(--ebd-accent);
  color: #fff;
  text-decoration: none;
}

/* Related events label */
.ebd-single-related-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ebd-accent);
  letter-spacing: 0.5px;
  margin-top: 8px;
  margin-bottom: 20px;
  padding-top: 8px;
}

/* ---- Single page responsive ---- */
@media (max-width: 768px) {
  .ebd-single-event {
    padding: 20px 14px;
  }

  .ebd-single-meta-row {
    gap: 20px;
  }

  .ebd-single-meta-location {
    margin-left: 0;
  }

  .ebd-single-info-box {
    padding: 20px 16px;
  }
}

/* ============================================
   RELATED EVENTS — single page
   ============================================ */
.ebd-related-events {
  margin-top: 40px;
  padding-top: 8px;
}

.ebd-related-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: var(--ebd-accent);
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--ebd-body-font);
}

.ebd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* Related card — same as main grid card */
.ebd-related-card {
  background: var(--ebd-card-bg);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ebd-border);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.ebd-related-card:hover {
  box-shadow: 0 8px 30px rgba(192,57,43,0.15);
  transform: translateY(-3px);
  border-color: #3a3a3a;
}

.ebd-related-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1a1a;
}

.ebd-related-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.ebd-related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.ebd-related-card:hover .ebd-related-card-image img {
  transform: scale(1.05);
}

.ebd-related-card-body {
  padding: 14px 14px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ebd-related-card-title {
  font-family: var(--ebd-title-font);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ebd-text-muted);
  margin: 0 0 6px;
  line-height: 1.2;
}

.ebd-related-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.ebd-related-card-title a:hover {
  color: var(--ebd-accent);
}

.ebd-related-card .ebd-card-footer {
  margin-top: auto;
  padding: 12px 0 14px;
}

.ebd-related-card .ebd-card-footer .ebd-btn-view-details {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .ebd-related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .ebd-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SINGLE PAGE v1.4 — Location meta fix
   ============================================ */

/* Location value in meta row — accent red like the image */
.ebd-single-location-link {
  color: var(--ebd-accent) !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.15s;
}

a.ebd-single-location-link:hover {
  color: var(--ebd-accent-hover) !important;
}

.ebd-single-location-plain {
  color: var(--ebd-accent);
  font-size: 16px;
  font-weight: 700;
}

/* Remove old right-align override */
.ebd-single-meta-location {
  margin-left: 0 !important;
}

/* v1.5 — location value white, matches other meta values */
.ebd-single-location-link,
a.ebd-single-location-link,
a.ebd-single-location-link:hover,
.ebd-single-location-plain {
  color: var(--ebd-text) !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

a.ebd-single-location-link:hover {
  color: #ccc !important;
}

/* ============================================
   BOOK NOW — v1.7
   ============================================ */

/* Share + Book Now row — share left, button right */
.ebd-single-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Keep existing share styles, now inside the row */
.ebd-single-share-row .ebd-single-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Book Now button — accent red text, no background, matches theme */
.ebd-book-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ebd-body-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ebd-accent);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.ebd-book-now-btn:hover {
  color: var(--ebd-accent-hover);
  text-decoration: none;
}

@media (max-width: 480px) {
  .ebd-single-share-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   v1.8 — Category tabs: plain text + underline
   Remove all pill/border/background styles
   ============================================ */

/* Reset pill styles */
.ebd-cat-tab {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #888 !important;
  font-family: var(--ebd-body-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px 10px !important;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}

/* Underline indicator */
.ebd-cat-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--ebd-accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.ebd-cat-tab:hover {
  color: #fff !important;
  background: transparent !important;
}

.ebd-cat-tab.active {
  color: #fff !important;
  background: transparent !important;
}

.ebd-cat-tab.active::after {
  transform: scaleX(1);
}

/* ============================================
   v1.9 — Book Now button: border style like VIEW DETAILS
   ============================================ */
.ebd-book-now-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--ebd-body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff !important;
  background: transparent;
  border: 1.5px solid #fff;
  border-radius: 4px;
  padding: 11px 24px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.ebd-book-now-btn:hover {
  background: var(--ebd-accent) !important;
  border-color: var(--ebd-accent) !important;
  color: #fff !important;
  text-decoration: none;
}
