/* JuicyBlock Events Directory v1.2.1 – flat dark JuicyBlock / NN Map styling. */
.jbed-directory {
  --jbed-bg: #070a0f;
  --jbed-hero: #101722;
  --jbed-panel: #10151d;
  --jbed-field: #0b1017;
  --jbed-border: #303945;
  --jbed-border-hover: #536172;
  --jbed-ink: #f6f8fb;
  --jbed-muted: #a9b3c2;
  --jbed-pink: #fa238d;
  --jbed-pink-hover: #d91472;
  --jbed-blue: #229bf0;
  --jbed-lime: #cbf26d;
  box-sizing: border-box;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto 48px;
  padding: 0 0 28px;
  color: var(--jbed-ink);
  background: var(--jbed-bg);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  container-type: inline-size;
  color-scheme: dark;
}
.jbed-directory *, .jbed-directory *::before, .jbed-directory *::after { box-sizing: border-box; }
/* Keep the previously requested squared edges, regardless of the WordPress theme. */
.jbed-directory .jbed-heading, .jbed-directory .jbed-filters,
.jbed-directory .jbed-card, .jbed-directory input, .jbed-directory select,
.jbed-directory button, .jbed-directory .jbed-date,
.jbed-directory .jbed-chips span, .jbed-directory .jbed-website,
.jbed-directory .jbed-pagination a, .jbed-directory .jbed-empty { border-radius: 0 !important; }
.jbed-directory a { text-decoration: none; }
.jbed-directory :focus-visible { outline: 2px solid var(--jbed-pink); outline-offset: 2px; }

/* Text header, separate from the full-width WordPress image banner. */
.jbed-heading {
  position: relative;
  overflow: hidden;
  min-height: 225px;
  color: #fff;
  background: var(--jbed-hero);
  border: 0;
  border-bottom: 3px solid var(--jbed-pink);
  box-shadow: none;
}
.jbed-heading::before { display: none; }
.jbed-heading-inner {
  max-width: 100%;
  min-height: 225px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 30px clamp(24px, 3.5vw, 48px);
}
.jbed-heading-copy { position: relative; z-index: 1; min-width: 0; }
.jbed-kicker { color: var(--jbed-pink); letter-spacing: .12em; font-size: 11px; font-weight: 850; }
.jbed-kicker span { color: #6e7d8e; margin: 0 .45em; }
.jbed-directory .jbed-hero-title {
  color: #fff;
  margin: 11px 0 12px;
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 49px);
  line-height: 1.1;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.jbed-title-dot { color: var(--jbed-pink); }
.jbed-heading p { max-width: 740px; margin: 0; color: #d2dbe6; font-size: 14px; line-height: 1.6; }
.jbed-hero-details {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: #c7d0dc;
  font-size: 10px;
  letter-spacing: .09em;
  font-weight: 850;
}
.jbed-hero-star { color: var(--jbed-pink); font-size: 12px; line-height: 1; }

/* Search controls match the nearly black search bar in JuicyBlock NN Map. */
.jbed-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 19px;
  padding: 19px;
  background: var(--jbed-panel);
  border: 1px solid var(--jbed-border);
  box-shadow: none;
}
.jbed-filter { min-width: 0; }
.jbed-filter label { display: block; margin: 0 0 7px; color: #edf1f6; font-size: 12px; font-weight: 800; }
.jbed-directory .jbed-filter input,
.jbed-directory .jbed-filter select {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 37px 0 13px;
  border: 1px solid #3b4654;
  background-color: var(--jbed-field);
  color: #f6f8fb;
  font: inherit;
  font-size: 14px;
  line-height: normal;
  box-shadow: none;
  margin: 0;
}
.jbed-directory .jbed-filter select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%23fa238d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.jbed-directory .jbed-filter select option { background: #121820; color: #fff; }
.jbed-directory .jbed-filter input::placeholder { color: #8d98a9; opacity: 1; }
.jbed-directory .jbed-filter input:focus,
.jbed-directory .jbed-filter select:focus {
  border-color: var(--jbed-pink);
  box-shadow: none;
  outline: 2px solid rgba(250,35,141,.24);
  outline-offset: 0;
}
.jbed-form-actions { display: flex; gap: 12px; align-items: flex-end; min-width: 0; }
.jbed-directory .jbed-form-actions button {
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid var(--jbed-pink);
  background: var(--jbed-pink);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}
.jbed-directory .jbed-form-actions button:hover { background: var(--jbed-pink-hover); border-color: var(--jbed-pink-hover); }
.jbed-form-actions a {
  color: #c6d0dc;
  font-size: 13px;
  white-space: nowrap;
  padding-bottom: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jbed-form-actions a:hover { color: #fff; }

/* Event cards: quiet charcoal surfaces, small pink/blue accents, no glow. */
.jbed-listbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 14px;
  padding: 14px 1px 18px;
}
.jbed-listbar strong { color: #fff; font-size: 19px; font-weight: 850; }
.jbed-listbar span { color: var(--jbed-muted); font-size: 12px; }
.jbed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.jbed-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--jbed-border);
  background: var(--jbed-panel);
  box-shadow: none;
  transition: border-color .15s ease;
}
.jbed-card:hover { border-color: var(--jbed-border-hover); transform: none; }
.jbed-card-upper { display: flex; align-items: flex-start; gap: 12px; }
.jbed-date {
  flex: 0 0 64px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border: 1px solid #854060;
  background: #241523;
  color: #fff;
  line-height: 1.1;
  text-decoration: none;
}
.jbed-date strong { font-size: 28px; font-weight: 900; color: var(--jbed-lime); }
.jbed-date span { margin-top: 5px; color: #eef1f6; font-size: 11px; font-weight: 750; white-space: nowrap; }
.jbed-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.jbed-chips span {
  padding: 5px 9px;
  border: 1px solid #354252;
  background: #18212c;
  color: #dde5ef;
  font-weight: 750;
  font-size: 11px;
  line-height: 1.25;
}
.jbed-directory .jbed-card h3 {
  color: #fff;
  margin: 17px 0 9px;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.jbed-organizer { color: #cbd5e0; margin: 0 0 13px; font-size: 13px; }
.jbed-organizer span { color: #fff; font-weight: 800; margin-right: 3px; }
.jbed-meta { display: grid; gap: 7px; color: #cbd5e0; font-size: 13px; }
.jbed-meta > div { overflow-wrap: anywhere; }
.jbed-meta-icon { display: inline-grid; width: 17px; color: var(--jbed-blue); font-size: 16px; font-weight: 700; }
.jbed-address { padding-left: 17px; color: var(--jbed-muted); font-size: 12px; }
.jbed-description { color: var(--jbed-muted); font-size: 13px; margin: 12px 0 0; }
.jbed-card-bottom { border-top: 1px solid var(--jbed-border); padding-top: 13px; margin-top: auto; }
.jbed-card-bottom:not(:first-child) { margin-top: 20px; }
.jbed-website {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 14px;
  background: #0a0f16;
  border: 1px solid #384451;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
}
.jbed-website span { color: var(--jbed-blue); font-size: 18px; line-height: 1; }
.jbed-website:hover { border-color: var(--jbed-pink); background: #16131d; }
.jbed-no-web { color: var(--jbed-muted); font-size: 12px; }
.jbed-pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 26px auto 0; flex-wrap: wrap; }
.jbed-pagination a {
  min-height: 44px;
  padding: 11px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--jbed-border);
  background: var(--jbed-panel);
}
.jbed-pagination a:hover { border-color: var(--jbed-pink); }
.jbed-pagination span { color: var(--jbed-muted); font-size: 13px; }
.jbed-empty { padding: 35px; text-align: center; border: 1px solid var(--jbed-border); background: var(--jbed-panel); box-shadow: none; }
.jbed-empty strong { color: #fff; font-size: 17px; }
.jbed-empty p { color: var(--jbed-muted); margin: 7px 0 12px; }
.jbed-empty a { color: var(--jbed-pink); font-weight: 750; }

/* Layout follows the actual shortcode container, including Gutenberg narrow content. */
@container (max-width: 1030px) {
  .jbed-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jbed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 700px) {
  .jbed-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 16px; }
  .jbed-filter-search { grid-column: 1 / -1; }
  .jbed-form-actions { grid-column: 1 / -1; justify-content: flex-start; align-items: center; }
  .jbed-form-actions a { padding-bottom: 0; }
  .jbed-heading-inner { min-height: 0; padding: 29px 24px; }
  .jbed-heading { min-height: 0; }
  .jbed-directory .jbed-hero-title { font-size: clamp(30px, 7cqw, 40px); }
  .jbed-grid { grid-template-columns: 1fr; gap: 12px; }
}
@container (max-width: 480px) {
  .jbed-kicker { letter-spacing: .08em; font-size: 10px; }
  .jbed-hero-details { margin-top: 17px; font-size: 9px; gap: 8px; }
  .jbed-filters { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
  .jbed-filter-search, .jbed-form-actions { grid-column: 1; }
  .jbed-form-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .jbed-directory .jbed-form-actions button { width: 100%; }
  .jbed-card { padding: 16px; }
  .jbed-directory .jbed-card h3 { font-size: 18px; }
  .jbed-listbar { gap: 4px; }
  .jbed-listbar span { flex-basis: 100%; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 1020px) {
    .jbed-directory .jbed-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jbed-directory .jbed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 700px) {
    .jbed-directory .jbed-heading-inner { grid-template-columns: 1fr; padding: 28px 22px; }
    .jbed-directory .jbed-filters { grid-template-columns: 1fr; }
    .jbed-directory .jbed-grid { grid-template-columns: 1fr; }
    .jbed-directory .jbed-form-actions { justify-content: flex-start; }
  }
}
@media (prefers-reduced-motion: reduce) { .jbed-card { transition: none; } }
