/* =========================
   HFDN Event Tabs + Pills (Improved Readability + Contrast)
   Replace the entire block with this
   ========================= */

/* Pills wrap */
.hfdn-event-single .hfdn-event-pills-wrap {
  margin: 12px 0 18px 0;
}

.hfdn-event-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.hfdn-event-pills-label {
  font-weight: 800;
  opacity: 1;
  color: #111827;
  letter-spacing: 0.2px;
}

.hfdn-event-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hfdn-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #cfd4dc;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  opacity: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.hfdn-pill:hover {
  background: rgba(0,0,0,0.03);
  border-color: #b8c0cc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.hfdn-pill:focus,
.hfdn-pill:focus-visible {
  outline: none;
  border-color: #ff4d8d;
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.22), 0 4px 12px rgba(0,0,0,0.06);
}

/* Actions row under description */
.hfdn-event-actions-row {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px 0;
}

/* Make sure actions aren’t “faded” by inherited opacity */
.hfdn-event-actions-row,
.hfdn-event-actions-row * {
  opacity: 1 !important;
}

@media (min-width: 900px) {
  .hfdn-event-actions-row {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

/* (Best-effort) Favorites + actions readability if your button classes match */
.hfdn-event-actions-row .hfdn-favorite,
.hfdn-event-actions-row .hfdn-favorite-event,
.hfdn-event-actions-row .hfdn-favorite-event-button,
.hfdn-event-actions-row .hfdn-favorite-button,
.hfdn-event-actions-row a,
.hfdn-event-actions-row button {
  opacity: 1 !important;
}

.hfdn-event-actions-row .hfdn-favorite,
.hfdn-event-actions-row .hfdn-favorite-event-button,
.hfdn-event-actions-row .hfdn-favorite-button {
  border: 1px solid #cfd4dc !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-weight: 800;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, color 160ms ease;
}

.hfdn-event-actions-row .hfdn-favorite:hover,
.hfdn-event-actions-row .hfdn-favorite-event-button:hover,
.hfdn-event-actions-row .hfdn-favorite-button:hover {
  border-color: #b8c0cc !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

/* Active/saved state (if your markup adds these classes) */
.hfdn-event-actions-row .is-active,
.hfdn-event-actions-row .active {
  background: #fff0f6 !important;
  border-color: #ff4d8d !important;
  color: #b3124b !important;
  box-shadow: 0 6px 18px rgba(255,77,141,0.18);
}

/* Tabs container */
.hfdn-event-tabs {
  margin-top: 10px;
}

/* Mobile dropdown */
.hfdn-event-tabs-mobile {
  display: block;
  margin: 6px 0 12px 0;
}

.hfdn-event-tab-select {
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cfd4dc;
  background: #fff;
  color: #111827;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.hfdn-event-tab-select:focus,
.hfdn-event-tab-select:focus-visible {
  outline: none;
  border-color: #ff4d8d;
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.22), 0 4px 12px rgba(0,0,0,0.06);
}

/* Desktop tab bar */
.hfdn-event-tabs-nav {
  display: none;
  margin-bottom: 14px;
}

.hfdn-event-tabs-list {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

/* Tab button (inactive) — HIGH contrast + clearer border */
.hfdn-event-tab-btn {
  appearance: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #cfd4dc;
  background: #ffffff;
  color: #1f2937;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  opacity: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, color 160ms ease;
}

.hfdn-event-tab-btn:hover {
  border-color: #b8c0cc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

/* Active tab */
.hfdn-event-tab-btn[aria-selected="true"] {
  background: #fff0f6;
  border-color: #ff4d8d;
  color: #b3124b;
  box-shadow: 0 6px 18px rgba(255,77,141,0.18);
}

/* Focus (keyboard accessibility) */
.hfdn-event-tab-btn:focus,
.hfdn-event-tab-btn:focus-visible {
  outline: none;
  border-color: #ff4d8d;
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.22), 0 4px 12px rgba(0,0,0,0.06);
}

@media (min-width: 900px) {
  .hfdn-event-tabs-mobile { display: none; }
  .hfdn-event-tabs-nav { display: block; }
}

/* Panels */
.hfdn-tab-panel {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Hard-hide Add To Calendar elements wherever they appear */
.tribe-events-cal-links,
.tribe-events-event-meta .tribe-events-cal-links,
a.tribe-events-gcal,
a.tribe-events-ical {
  display: none !important;
}