/* ===== 日曆元件樣式 ===== */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.cal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}
.cal-nav {
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background var(--transition);
}
.cal-nav:hover { background: var(--color-accent-light); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.cal-weekday {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: .3rem 0;
}
.cal-weekday:first-child { color: var(--color-error); }
.cal-weekday:last-child  { color: var(--color-accent); }

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
  font-size: .9rem;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  cursor: pointer;
  position: relative;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day--available { cursor: pointer; color: var(--color-text); }
.cal-day--available:hover { background: var(--color-accent-light); color: var(--color-accent); }

.cal-day--weekend { color: var(--color-accent) !important; font-weight: 600; }

.cal-day--today {
  font-weight: 800;
  background: var(--color-accent-light);
}
.cal-day--today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

.cal-day--selected {
  background: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 700;
}

.cal-day--past,
.cal-day--other-month {
  color: var(--color-text-muted);
  cursor: default;
  opacity: .4;
}

.cal-day--fully-booked,
.cal-day--blocked {
  color: var(--color-text-muted);
  cursor: not-allowed;
  text-decoration: line-through;
  background: var(--color-border);
  opacity: .55;
}
