/* ======= GLOBAL CALENDAR STYLES ======= */
html, body {
  overflow-x: hidden !important;
}

#ceb-calendar {
  margin-top: 30px !important;
  font-family: 'Inter', 'Nunito', sans-serif !important;
  color: #111 !important;
}

/* ======= GRID & HEADER ======= */
#ceb-calendar .fc-scrollgrid {
  border-radius: 25px !important;
  overflow: hidden !important;
  border: none !important;
}

#ceb-calendar .fc-col-header-cell {
  background-color: #B4C5B8 !important;
  border: none !important;
}

#ceb-calendar .fc-col-header-cell-cushion {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  padding: 10px 0 !important;
}

/* ======= TODAY HIGHLIGHT ======= */
#ceb-calendar .fc-day-today {
  background-color: #F5F1E8 !important;
}

/* ======= TOOLBAR & BUTTONS ======= */
#ceb-calendar .fc .fc-toolbar-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111 !important;
}

#ceb-calendar .fc-button {
  background-color: #fff !important;
  border: 1px solid #B4C5B8 !important;
  color: #111 !important;
  border-radius: 25px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: capitalize !important;
  transition: all 0.3s ease !important;
  margin: 0 5px;
}

#ceb-calendar .fc-button:hover,
#ceb-calendar .fc-button.fc-button-active {
  background-color: #B4C5B8 !important;
  color: #fff !important;
  border-color: #B4C5B8 !important;
}

#ceb-calendar .fc-button:focus {
  box-shadow: none !important;
}

/* ======= EVENT BLOCK STYLING ======= */
#ceb-calendar .fc-event {
  border-radius: 25px !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  white-space: normal !important;
  word-break: break-word !important;
  background-color: inherit !important; /* ✅ Make it respect the dynamic category */
  color: #fff !important;
  border: none !important;
  position: relative;
}

#ceb-calendar .fc-event:hover {
  box-shadow: none !important;
  border: none !important;
}

/* ======= EVENT TITLE WRAPPER ======= */
#ceb-calendar .fc-event .fc-event-title {
  width: 100% !important;
  display: inline-block !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
}

#ceb-calendar .ceb-title-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px;
}

#ceb-calendar .ceb-event-name {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

/* ======= BADGE STYLES ======= */
#ceb-calendar .ceb-badge {
  display: inline-block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  color: #fff !important;
  text-transform: uppercase !important;
  background-color: #888 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#ceb-calendar .ceb-badge-adults {
  background-color: #DABA7A !important;
}

#ceb-calendar .ceb-badge-kids {
  background-color: #B4C5B8 !important;
}

/* ======= CATEGORY FALLBACK COLORS ======= */
#ceb-calendar .category-kids-events {
  background-color: #B4C5B8 !important;
}

#ceb-calendar .category-adults-events {
  background-color: #DABA7A !important;
}


/* ======= SLIDE PANEL STYLES ======= */
#ceb-slide-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 400px; /* desktop fixed width */
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
  transition: left 0.3s ease;
  padding: 25px 20px 40px;
  padding-top: 80px;
  overflow-y: auto;
  z-index: 999999 !important;
  box-sizing: border-box;
}

#ceb-slide-panel.open {
  left: 0;
}


.ceb-slide-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


.ceb-slide-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  z-index: 2;
}

.ceb-slide-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 5px;
  color: #111;
}

.ceb-slide-category {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  padding: 2px 10px;
  border-radius: 15px;
  display: inline-block;
}

.ceb-slide-category.kids-events {
  background-color: #B4C5B8;
}

.ceb-slide-category.adults-events {
  background-color: #DABA7A;
}


.ceb-slide-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.ceb-slide-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  max-width: 100%;
}

.ceb-slide-actions a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ceb-book-btn {
  background-color: #B4C5B8;
  color: #fff;
  border: none;
}

.ceb-book-btn:hover {
  background-color: #9DAFA4 !important;
  color: #fff !important;
}

.ceb-details-link:hover {
  background-color: #B4C5B8 !important;
  color: #fff !important;
}

.ceb-details-link {
  border: 1.5px solid #B4C5B8;
  color: #B4C5B8;
  background-color: transparent;
}

/* Slide image */
.ceb-slide-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  max-height: 320px;
 
}

.ceb-slide-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Hide the "Week" view toggle without affecting navigation buttons */
#ceb-calendar .fc-button-group .fc-timeGridWeek-button {
  display: none !important;
}



/* Header fix */
#site-header {
  z-index: 10000 !important;
}

#site-header.hide-on-slide {
  display: none !important;
}

/* ======= RESPONSIVE FIXES ======= */
@media (max-width: 767px) {
    #ceb-slide-panel {
    width: 100% !important;
    max-width: 100vw !important;
  }

  .ceb-slide-content,
  .ceb-slide-actions,
  .ceb-slide-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  #ceb-calendar .fc-event {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  #ceb-calendar .fc .fc-toolbar-title {
    font-size: 18px !important;
  }

  #ceb-calendar .fc-button {
    padding: 6px 10px !important;
    font-size: 12px !important;
    margin: 4px !important;
  }

  #ceb-calendar .fc-col-header-cell-cushion {
    font-size: 12px !important;
  }

  #ceb-calendar .ceb-badge {
    font-size: 9px !important;
    padding: 3px 8px !important;
  }

  #ceb-calendar .ceb-title-wrap {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  #ceb-calendar .ceb-event-name {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    flex: 1;
  }

  #ceb-calendar .fc-header-toolbar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #ceb-calendar .fc-toolbar-chunk {
    width: 100%;
    justify-content: center !important;
  }

  .ceb-slide-title {
    font-size: 18px !important;
    margin-top: 50px !important;
  }

  #ceb-slide-panel,
  #ceb-slide-panel .ceb-slide-content {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .ceb-slide-actions {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Tooltip on long press or hover */
  #ceb-calendar .fc-event[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 6px;
    white-space: normal;
    max-width: 220px;
    z-index: 999;
  }
}
