#mill-day-slider,
#mill-full-list {
  min-height: 90vh; /* adjust based on your content */
   transition: opacity 0.3s ease;
}

#mill-day-slider {
  font-family: sans-serif;
  margin: 1rem 0;
}

/*.day-slider-header {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 0.5em;
}*/


.day-slider-nav {
        display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}


.day-heading {
  margin: 1rem 0 0.5rem;
} 

.day-list {
  display: flex;
  overflow-x: scroll;
  gap: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}



.day-slide {
  border-radius: 5px;
  padding: 1rem;
  aspect-ratio: 1 / 1;
  text-align: center;
  cursor: pointer;
}
.day-slide:hover {
  background: #ddd;
}
.day-slide.current {
  background-color: #000;
  color: #fff;
  border-radius: 6px;
}

.day-num {
  font-size: 1.2em;
  font-weight: bold;
}
.day-name {
  font-size: 0.9em;
}



button.next-day,
button.prev-day {
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 5px;
  background-color: rgba(240,240,240,0.1);
 
  -webkit-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
  z-index: 1;
  cursor: pointer;
}

button.next-day:hover,
button.prev-day:hover {
  background-color: rgba(210,165,90,1); /*gold*/
   background-color: rgba(240,240,240,0.9);
      -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}



.date-title {
  margin: 3rem 0 2rem 0;
}


.class-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin: 1em 0 0.5em;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 6px;
  align-items: center;
}

.class-card.past {
  opacity: 0.7;
  pointer-events: none;
}

.class-info {
  width: 85%;
  color: #111;
  text-align: left;
  justify-content: space-between;
}

.class-info > div {
  width: 25%;
}

.class-thumb {
  width: 10%;
}

.class-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.trainerTitle, 
.localeTitle,
.durationTitle {
  text-transform: uppercase;
}


.name.fw-500 {
  margin-bottom:0;
}

.startTime {
  color: #666;
}


@media (max-width: 768px) {


   .class-thumb,
   .trainerTitle,
   .localeTitle,
   .durationTitle,
   .time
   {
    display: none;
   }

   .class-info {
    width: 100%;
   }



   .class-info > div {
        display: flex;
        width: 100%;
        align-items: flex-end;
        justify-content: space-between;
    }

    .class-info > div > div:nth-child(1){
      float: left;
    }

    .class-info > div > div:nth-child(2) {
      float: right;
    }

    .duration.fw-500 {
      float: left;
    }

    button.next-day, button.prev-day {
      width: 40px;
      height: 40px;
      margin: 2rem;
      display: none;
    }

    .space_left {
      font-size: 0.8rem;
    }


/*  .class-info.row {
    flex-direction: column;
  }*/


}



.loading-spinner {
  padding: 1em;
  text-align: center;
  font-weight: bold;
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.day-slide.active {
  background: #000;
  color: #fff;
  font-weight: bold;
}

.day-schedule-results .loading {
  text-align: center;
  font-style: italic;
  padding: 1em;
  color: #666;
}


#mill-schedule-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem auto 2rem auto;
}

#mill-schedule-controls .view-toggle button.active {
  background: rgba(255,255,255,0.2);
}


.filter-controls {
  align-items: center;
  justify-content: center;
}

.filter-controls select {
  padding: 0.4em;
  margin:0.5rem;
}






/* Shared button styles */
.button,
.view-toggle button,
.book-btn {
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}

/* Specific style for the black "Book Now" button */
.book-btn {
  background: #000;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5em;
}

.book-btn:hover {
  background: #333;
}
