/* Black Diamond Spa — Schedule (Diamond Schedule) */

.schedule {
  background: var(--bg-primary);
}

/* Day strip */
.schedule__day-strip {
  display: flex;
  gap: var(--sp-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--sp-sm);
  margin-bottom: var(--sp-2xl);
}

.schedule__day-strip::-webkit-scrollbar { display: none; }

.schedule__day-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 60px;
  min-width: 64px;
  -webkit-tap-highlight-color: transparent;
}

.schedule__day-name {
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.schedule__day-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.schedule__day-btn:hover {
  border-color: rgba(10, 186, 181, 0.35);
  color: var(--tiffany);
}

.schedule__day-btn.is-active {
  background: rgba(10, 186, 181, 0.12);
  border-color: var(--tiffany);
  color: var(--tiffany);
  box-shadow: 0 0 16px var(--tiffany-glow);
}

.schedule__day-btn.is-active .schedule__day-date {
  color: var(--tiffany-light);
}

/* Therapist filter chips */
.schedule__therapists {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2xl);
}

.schedule__therapist-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.schedule__therapist-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--tiffany);
}

.schedule__therapist-chip:hover {
  border-color: rgba(10, 186, 181, 0.35);
  color: var(--tiffany);
}

.schedule__therapist-chip.is-active {
  background: rgba(10, 186, 181, 0.10);
  border-color: var(--tiffany);
  color: var(--tiffany);
}

/* Slots grid */
.schedule__slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 640px) {
  .schedule__slots { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .schedule__slots { grid-template-columns: repeat(3, 1fr); }
}

/* Slot card */
.schedule__slot {
  background: var(--bg-secondary);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.schedule__slot--free {
  border-color: rgba(10, 186, 181, 0.25);
}

.schedule__slot--free:hover {
  border-color: var(--tiffany);
  box-shadow: 0 4px 20px var(--tiffany-glow);
}

.schedule__slot--busy {
  opacity: 0.5;
  pointer-events: none;
}

.schedule__slot--soon {
  border-color: rgba(212, 175, 55, 0.30);
  animation: tiffanyGlow 2.5s ease-in-out infinite;
}

@keyframes slotPulse {
  0%, 100% { border-color: rgba(212, 175, 55, 0.20); }
  50%       { border-color: rgba(212, 175, 55, 0.55); }
}

.schedule__slot--soon {
  animation: slotPulse 2s ease-in-out infinite;
}

.schedule__slot-time {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
}

.schedule__slot-therapist {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.schedule__slot-service {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.schedule__slot-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-top: auto;
}

.schedule__slot-status--free  { color: var(--status-free); }
.schedule__slot-status--busy  { color: var(--status-busy); }
.schedule__slot-status--soon  { color: var(--status-soon); }

.schedule__slot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

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

.schedule__slot--soon .schedule__slot-status-dot {
  animation: shimmerPulse 1.5s ease-in-out infinite;
}

/* Legend */
.schedule__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--divider);
}

.schedule__legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.schedule__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Hours sticky bar */
.schedule__hours-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--divider);
  padding: var(--sp-md) var(--container-pad);
  padding-bottom: calc(var(--sp-md) + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: var(--sp-xl);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  position: sticky;
  bottom: 0;
  z-index: var(--z-sticky);
}

.schedule__hours-bar span {
  color: var(--tiffany);
  font-weight: 600;
}
