/* ===== EDC – Impreza + WPBakery optimized ===== */
body .edc-filters,
body .edc-grid,
body .edc-card,
body .edc-register-button a,
body .edc-single__card{
  font-family: inherit;
  color: inherit;
}

/* Filters */
body .edc-filters{
  border:1px solid rgba(0,0,0,.08);
  background:transparent;
  border-radius:16px;
  padding:16px;
}
body .edc-field{
  min-width:200px;
}
body .edc-field select{
  width:100%;
  padding:10px 12px;
  border-radius:5px;
  border:1px solid rgba(0,0,0,.12);
  background:transparent;
  font:inherit;
}

/* Buttons */
body .edc-btn{
  border-radius:5px;
  border:1px solid rgba(0,0,0,.16);
  background:transparent;
  color:inherit;
  padding:10px 14px;
  line-height:1;
}
body .edc-btn:hover{
  transform:translateY(-1px);
}
body .edc-btn--primary{
  background:currentColor;
  border-color:currentColor;
  color:#fff;
}

/* Grid */
body .edc-grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(12,1fr);
}
body .edc-card{
  grid-column:span 4;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.04);
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  overflow:hidden;
}
@media(max-width:1024px){
  body .edc-card{grid-column:span 6;}
}
@media(max-width:640px){
  body .edc-card{grid-column:span 12;}
}

/* Single event */
body .edc-single__wrap{
  max-width:1100px;
}
body .edc-single__title{
  font-size:clamp(22px,3vw,34px);
}
body .edc-chip{
  border:1px solid rgba(0,0,0,.12);
  background:transparent;
  border-radius:999px;
  padding:8px 12px;
}


/* ===== EDC – Better Horizontal Filters + Checkbox UI ===== */
body .edc-filters{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
}
body .edc-filters__row{ display: contents; } /* ignore old rows layout */
body .edc-field{
  min-width: 170px;
  flex: 1 1 170px;
}
body .edc-field select{
  height:44px;
  padding:0 12px;
}
body .edc-filters__actions{
  flex: 0 0 auto;
  display:flex;
  gap:10px;
  align-items:center;
  margin:0;
}
body .edc-btn{
  height:44px;
  display:inline-flex;
  align-items:center;
}

/* Checkbox fields (age/accessibility) */
body .edc-field--checks{
  flex: 2 1 260px; /* give more room */
}
body .edc-label{
  font-size:14px;
  margin-bottom:6px;
}
body .edc-checks{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background:transparent;
  max-height: 96px;
  overflow:auto;
}
body .edc-check{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  white-space:nowrap;
}
body .edc-check input{
  width:18px;
  height:18px;
}

/* Hint to full width */
body .edc-filters__hint{
  width:100%;
  margin-top:8px;
}

/* Mobile */
@media(max-width:768px){
  body .edc-field{ flex: 1 1 48%; min-width: 0; }
  body .edc-field--checks{ flex: 1 1 100%; }
  body .edc-filters__actions{ width:100%; }
  body .edc-filters__actions .edc-btn{ flex:1; justify-content:center; }
}





/* ===== EDC – Horizontal filters (all native selects) ===== */
body .edc-filters{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
}
body .edc-filters__row{ display: contents; }
body .edc-field{
  flex: 1 1 180px;
  min-width: 180px;
}
body .edc-field select{
  width:100%;
  height:44px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
  color: inherit;
  font: inherit;
}
body .edc-filters__actions{
  flex:0 0 auto;
  display:flex;
  gap:10px;
  align-items:center;
  margin:0;
}
body .edc-btn{
  height:44px;
  display:inline-flex;
  align-items:center;
}
@media(max-width:768px){
  body .edc-field{ flex: 1 1 48%; min-width: 0; }
  body .edc-filters__actions{ width:100%; }
  body .edc-filters__actions .edc-btn{ flex:1; justify-content:center; }
}
@media(max-width:480px){
  body .edc-field{ flex: 1 1 100%; }
}


/* Screen-reader only label text (keeps accessibility while hiding visible label) */
body .edc-sr{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}


/* ===== EDC – Grid: 3 cards per row (responsive) ===== */
body .edc-grid{
  display:grid !important;
  gap:18px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body .edc-card{
  grid-column: auto !important; /* cancel 12-col span rules */
}

/* Tablet: 2 per row */
@media (max-width: 1024px){
  body .edc-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile: 1 per row */
@media (max-width: 640px){
  body .edc-grid{
    grid-template-columns: 1fr !important;
  }
}


/* Hide hint (removed in PHP, but safe) */
body .edc-filters__hint{ display:none !important; }

body .edc-filters__hint{display:none!important;}


/* ===== EDC – Register Button Shortcode ===== */
body .edc-register-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  line-height:1;
  border:1px solid rgba(0,0,0,.12);
}

body .edc-register-button:hover{ opacity:.92; }


/* ===== EDC – Price Shortcode ===== */
body .edc-price{font-weight:600;}


/* Default event image */
body .edc-thumb--default{width:100%;height:100%;object-fit:cover;display:block;}
