/* ============================================================
   Events Feed v2 — Editorial Style
   DM Serif Display for titles, DM Sans for body
   ============================================================ */

.ef-wrap {
  max-width: 900px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
}

/* ---- SEARCH ---- */
.ef-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: inherit;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
.ef-search:focus {
  border-color: #666;
}
.ef-search::placeholder {
  opacity: 0.45;
  font-style: italic;
}

/* ---- TAG BAR ---- */
.ef-tags {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

/* Toggle: By Interest / By Date — centered, 50% bigger */
.ef-toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
.ef-toggle-btn {
  background: transparent;
  border: 1.5px solid #bbb;
  color: inherit;
  opacity: 0.5;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ef-toggle-btn:hover {
  opacity: 0.8;
  border-color: #888;
}
.ef-toggle-btn.on {
  background: #222;
  color: #fff;
  border-color: #222;
  opacity: 1;
}

/* Pills row — centered */
.ef-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.ef-tag-btn {
  background: transparent;
  border: 1px solid #ccc;
  color: inherit;
  opacity: 0.55;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.ef-tag-btn:hover {
  opacity: 1;
  border-color: #888;
}
.ef-tag-btn.on {
  background: #222;
  color: #fff;
  border-color: #222;
  opacity: 1;
  font-weight: 700;
}

/* ---- EVENT CARDS ---- */
.ef-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card with image */
.ef-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
/* Card without image — full width */
.ef-card.ef-noimg {
  grid-template-columns: 1fr;
}
.ef-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .ef-card { grid-template-columns: 1fr; }
  .ef-card-img { height: 160px; }
}

/* Image */
.ef-card-img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  background: #f0f0f0;
}

/* Card body */
.ef-card-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}

.ef-card-row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.ef-card-name {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.3;
}
.ef-card-price {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.88rem;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}

.ef-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.55;
}

.ef-card-desc {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.55;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags on cards */
.ef-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.ef-card-tag {
  font-size: 0.68rem;
  text-transform: lowercase;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: transparent;
  color: inherit;
  opacity: 0.45;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.ef-card-tag:hover {
  opacity: 1;
  border-color: #888;
}
.ef-card-tag.hi {
  opacity: 1;
  border-color: #222;
  background: #f0f0f0;
}

/* Card footer */
.ef-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.ef-card-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f0f0;
  font-family: 'DM Sans', sans-serif;
}
.ef-card-src {
  font-size: 0.7rem;
  opacity: 0.35;
  font-style: italic;
}

/* ---- INLINE AD ---- */
.ef-ad {
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  opacity: 0.35;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- EMPTY / LOADING ---- */
.ef-msg {
  text-align: center;
  padding: 2rem 1rem;
  opacity: 0.45;
  font-style: italic;
}

/* ---- UPDATED TIMESTAMP ---- */
.ef-updated {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.3;
  margin-top: 20px;
  font-style: italic;
}
