/* Mobile filters UX:
   - Hide header filters on small screens
   - Hide right calendar column on small screens (optional)
   - Bottom bar button opens full-screen drawer
*/

@media (max-width: 640px){
  /* Hide header filters block on mobile */
  .bb-evtFilters--header{
    display:none !important;
  }

  /* Hide calendar column on mobile (cleaner) */
  .ccm-eventi-archive__calendar{
    display:none;
  }
}

/* Bottom bar */
.bb-evtMobileBar{
  display:none;
}

@media (max-width: 640px){
  .bb-evtMobileBar{
    display:block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 9999;
  }

  .bb-evtMobileBar__btn{
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 14px;
    background: var(--ccm-accent, #ff6e83);
    color: #fff;
    font-weight: 1000;
    font-size: 14px;
  }

  /* give space so content isn't hidden behind the fixed bar */
  .ccm-eventi-archive{
    padding-bottom: 110px;
  }
}

/* Drawer overlay */
.bb-evtDrawer{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 10000;
  display:none;
}

.bb-evtDrawer.is-open{
  display:block;
}

.bb-evtDrawer__panel{
  position: absolute;
  inset: 0;
  background: #fff;
  overflow: auto;
}

.bb-evtDrawer__head{
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  z-index: 2;
}

.bb-evtDrawer__title{
  font-weight: 1000;
  font-size: 18px;
}

.bb-evtDrawer__close{
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 900;
  font-size: 13px;
}

.bb-evtDrawer__body{
  padding: 14px;
}

/* Form spacing */
.bb-evtDrawer__form{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.bb-evtDrawer__select{
  width: 100%;
  justify-content: flex-start;
}
.bb-evtDrawer__select select{
  width: 100%;
}

.bb-evtDrawer__actions{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
  margin-top: 8px;
}

.bb-evtDrawer__reset{
  font-weight: 900;
  text-decoration:none;
  color: #111;
}

.bb-evtDrawer__apply{
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  background: var(--ccm-accent, #ff6e83);
  color: #fff;
  font-weight: 1000;
  font-size: 14px;
}

/* Ensure pills wrap nicely in drawer */
.bb-evtDrawer .ccm-eventi-archive__pills{
  max-width: none;
}