/* =========================================================
   EVENT INDEX PAGE (event_index_page.css)
   - Quick search always visible
   - Advanced filters collapsible (desktop + mobile)
   - No overlaps (advanced grid respects Bootstrap cols)
   - Premium event cards + clear typography hierarchy
   - Card image: object-fit contain (no crop)
   ========================================================= */


/* =========================================================
   0) Layout under fixed navbar
   ========================================================= */
.bh-events-index-wrap{
  padding-top: 0.1rem;
}

.bh-events-filter-panel{
  margin-top: -50px;     /* lift closer to navbar */
  margin-bottom: 0.75rem;
}


/* =========================================================
   1) FILTER CARD (glassy dark)
   ========================================================= */
.bh-filter-card{
  background: rgba(12,12,12,0.94) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.bh-filter-top{
  padding: 14px;
}

/* Labels */
.bh-filter-label{
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255,255,255,0.78) !important;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.1;
}

/* Controls (base) */
.bh-filter-input,
.bh-filter-select{
  height: 44px;
  width: 100%; /* IMPORTANT: never fixed width (prevents overlap) */

  background: rgba(255,255,255,0.96) !important;
  color: #000 !important;

  border: 1px solid rgba(0,0,0,0.12) !important;
  border-radius: 12px !important;

  display: block;
}

.bh-filter-input::placeholder{
  color: rgba(0,0,0,0.55);
}

/* Date inputs normalize */
.bh-filter-top input[type="date"].bh-filter-input{
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}


/* =========================================================
   1.1) QUICK ROW (Search + buttons in one line)
   ========================================================= */
.bh-filter-quick__row{
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Search input grows, never pushes buttons off */
.bh-filter-quick__row .bh-filter-input{
  flex: 1 1 auto;
  min-width: 0; /* key for flex overflow */
}

/* Quick buttons (match site-wide black button feel) */
.bh-filter-search-btn,
.bh-filter-adv-btn{
  height: 44px;
  border-radius: 12px;
  padding: 0 0.95rem;
  font-weight: 600;
  white-space: nowrap;

  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.bh-filter-search-btn:hover,
.bh-filter-adv-btn:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

/* Advanced caret rotation */
.bh-filter-adv-icon{
  display: inline-block;
  transition: transform 160ms ease;
}
.bh-filter-adv-btn[aria-expanded="true"] .bh-filter-adv-icon{
  transform: rotate(180deg);
}

/* Mobile: keep search + buttons usable */
@media (max-width: 576px){
  .bh-filter-quick__row{
    flex-wrap: wrap;
  }
  /* Keep buttons to the right on wrap line */
  .bh-filter-search-btn,
  .bh-filter-adv-btn{
    margin-left: auto;
  }
}


/* =========================================================
   1.2) ADVANCED SECTION (Bootstrap grid safe)
   ========================================================= */
.bh-filter-advanced{
  margin-top: 10px;
  width: 100%;
}

/* Allow Bootstrap columns to shrink correctly */
.bh-filter-advanced .row > [class*="col-"]{
  min-width: 0;
}

/* Force controls to respect column width */
.bh-filter-advanced .bh-filter-input,
.bh-filter-advanced .bh-filter-select{
  width: 100% !important;
  max-width: 100% !important;
}

/* Keep advanced controls aligned */
.bh-filter-advanced .bh-filter-input,
.bh-filter-advanced .bh-filter-select{
  height: 44px;
}


/* =========================================================
   1.3) APPLY / RESET buttons inside advanced grid
   ========================================================= */
.bh-btn{
  height: 44px;
  border-radius: 12px;
  font-weight: 600;
}

/* Ensure they match your global button style */
.bh-filter-top .btn.btn-primary,
.bh-filter-top .btn.btn-secondary{
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.bh-filter-top .btn.btn-primary:hover,
.bh-filter-top .btn.btn-secondary:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}


/* =========================================================
   2) EVENT CARDS (premium)
   ========================================================= */
.bh-event-card{
  background: transparent;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0,0,0,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.bh-event-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.22);
}

/* Image (NO CROP) */
.bh-event-card-img{
  width: 100%;
  height: 200px;
  object-fit: contain; /* no crop */
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 768px){
  .bh-event-card-img{ height: 180px; }
}

/* Body */
.bh-event-card .card-body{
  background: #fff;
  padding: 14px 14px 10px;
}

/* Badge */
.bh-event-card .badge{
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

/* Title */
.bh-event-card__title{
  margin: 0 0 0.35rem;
  font-weight: 750;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.bh-event-card__title a{
  color: #000;
  text-decoration: none;
}
.bh-event-card__title a:hover{
  text-decoration: underline;
}

/* Meta (darker than summary) */
.bh-event-card__meta{
  margin-bottom: 0.35rem;
  color: rgba(0,0,0,0.78);
  font-size: 0.9rem;
  font-weight: 520;
  line-height: 1.35;
}

.bh-event-card__meta strong{
  color: rgba(0,0,0,0.92);
  font-weight: 700;
}

/* Location */
.bh-event-card__location{
  margin-bottom: 0.5rem;
  color: rgba(0,0,0,0.70);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Summary (slightly lighter than meta) */
.bh-event-card__summary{
  color: rgba(0,0,0,0.62);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Footer + CTA */
.bh-event-card__footer{
  background: #fff;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.bh-event-card__cta{
  background: #000;
  color: #fff;
  border: 1px solid rgba(0,0,0,0.35);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font-weight: 650;
}

.bh-event-card__cta:hover{
  background: rgba(255,255,255,0.12);
  color: #fff;
}


/* =========================================================
   3) PAGINATION (dark)
   ========================================================= */
.pagination-dark .page-link{
  background: rgba(12,12,12,0.9);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.pagination-dark .page-item.disabled .page-link{
  color: rgba(255,255,255,0.45);
}


/* =========================================================
   4) "No events found" alert override (black, white text)
   ========================================================= */
.alert.alert-dark{
  background: rgba(12,12,12,0.92) !important;
  color: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}
